[compiler] print a backtrace as part of di (#658)

* print a backtrace as part of di

* missing include
This commit is contained in:
water111
2021-06-30 22:13:15 -04:00
committed by GitHub
parent c6ec7578e6
commit fe5635227a
8 changed files with 277 additions and 91 deletions
+2 -1
View File
@@ -182,7 +182,8 @@ TEST(Debugger, SimpleBreakpoint) {
EXPECT_TRUE(bi.knows_object);
EXPECT_TRUE(bi.object_name == "*listener*");
EXPECT_TRUE(bi.function_name == "test-function");
EXPECT_FALSE(bi.disassembly_failed);
auto disasm = compiler.get_debugger().disassemble_at_rip(bi);
EXPECT_FALSE(disasm.failed);
// if we change this to be before the break instruction this might need to be 0 in the future.
EXPECT_EQ(bi.function_offset, 1);