show function entry file location

in call trace info
This commit is contained in:
ValKmjolnir
2023-12-01 19:31:47 +08:00
parent 14ec9d2a34
commit 476fbdb859
3 changed files with 17 additions and 19 deletions

View File

@@ -129,7 +129,8 @@ void vm::function_detail_info(const nas_func& func) {
std::clog << const_string[func.dynamic_parameter_index] << "...";
}
std::clog << ") ";
std::clog << "{entry: 0x" << std::hex << func.entry << std::dec << "}";
const auto& code = bytecode[func.entry];
std::clog << "{ entry: " << files[code.fidx] << ":" << code.line << " }";
}
void vm::function_call_trace() {