Add source file name and line number to error messages.
Byte code has a map from byte-code offset to source-code line number,
used to give better error messages.
diff --git a/py/showbc.c b/py/showbc.c
index 36393ce..ba7c309 100644
--- a/py/showbc.c
+++ b/py/showbc.c
@@ -18,6 +18,10 @@
void mp_show_byte_code(const byte *ip, int len) {
const byte *ip_start = ip;
+ // get code info size
+ machine_uint_t code_info_size = ip[0] | (ip[1] << 8) | (ip[2] << 16) | (ip[3] << 24);
+ ip += code_info_size;
+
// decode prelude
{
uint n_local = *ip++;