mirror of
https://github.com/open-goal/jak-project
synced 2026-09-03 18:23:39 -04:00
dbgr: allow dumping the backtrace to a file (#2284)
Some backtraces are quite large, an option is to increase your terminal buffer -- but dumping to a file is also useful if you want to share the crash. I'm not crazy about the way I hacked this in, but it felt like the least invasive way for now and I don't want to cause a regression with the debugger. It's also nice that it dumps with ansi colors as then you can view the backtrace with the original coloring:  Usage: ```clj (:di "./stacktrace.log") ```
This commit is contained in:
@@ -182,7 +182,7 @@ TEST(Jak1Debugger, SimpleBreakpoint) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
}
|
||||
|
||||
compiler.get_debugger().update_break_info();
|
||||
compiler.get_debugger().update_break_info({});
|
||||
auto expected_instr_before_rip = compiler.get_debugger().get_x86_base_addr() + func_addr;
|
||||
auto rip = compiler.get_debugger().get_regs().rip;
|
||||
// instructions can be at most 15 bytes long.
|
||||
|
||||
Reference in New Issue
Block a user