delete lstk&fstk, store local address and function on stack and in vm registers

This commit is contained in:
ValKmjolnir
2022-03-08 17:30:40 +08:00
parent 99f595e16f
commit 61666d275d
8 changed files with 101 additions and 55 deletions
+4
View File
@@ -68,6 +68,7 @@ void nasal_dbg::help()
<<"\th, help | get help\n"
<<"\tbt, backtrace | get function call trace\n"
<<"\tc, continue | run program until break point or exit\n"
<<"\tf, file | see all the compiled files\n"
<<"\tg, global | see global values\n"
<<"\tl, local | see local values\n"
<<"\tu, upval | see upvalue\n"
@@ -129,6 +130,9 @@ void nasal_dbg::interact()
traceback();
else if(res[0]=="c" || res[0]=="continue")
return;
else if(res[0]=="f" || res[0]=="file")
for(size_t i=0;i<files_size;++i)
printf("[%zu] %s\n",i,files[i].c_str());
else if(res[0]=="g" || res[0]=="global")
global_state();
else if(res[0]=="l" || res[0]=="local")