mirror of
https://github.com/open-goal/jak-project
synced 2026-08-01 08:27:22 -04:00
improve debugger disasm, :sym-name and fix Windows builds (#959)
* improve debugger disasm, `:sym-name` and fix Windows builds * >:( * use this inline constexpr thing?? * fine use strings then * please.... please work... * fix windows debugger oopsie * display rip as goal addr as well * [debugger] attempt to backtrace even if landed on some garbage memory * Update CMakePresets.json
This commit is contained in:
+10
-4
@@ -119,13 +119,19 @@ void clear_print() {
|
||||
*/
|
||||
void reset_output() {
|
||||
if (MasterDebug) {
|
||||
// original GOAL:
|
||||
// sprintf(OutputBufArea.cast<char>().c() + sizeof(ListenerMessageHeader), "reset #x%x\n",
|
||||
// s7.offset);
|
||||
// original GOAL:
|
||||
// sprintf(OutputBufArea.cast<char>().c() + sizeof(ListenerMessageHeader), "reset #x%x\n",
|
||||
// s7.offset);
|
||||
|
||||
// modified for OpenGOAL:
|
||||
// modified for OpenGOAL:
|
||||
#ifdef _WIN32
|
||||
sprintf(OutputBufArea.cast<char>().c() + sizeof(ListenerMessageHeader),
|
||||
"reset #x%x #x%llx %s\n", s7.offset, (unsigned long long)g_ee_main_mem, // grr
|
||||
xdbg::get_current_thread_id().to_string().c_str());
|
||||
#else
|
||||
sprintf(OutputBufArea.cast<char>().c() + sizeof(ListenerMessageHeader), "reset #x%x #x%lx %s\n",
|
||||
s7.offset, (uintptr_t)g_ee_main_mem, xdbg::get_current_thread_id().to_string().c_str());
|
||||
#endif
|
||||
OutputPending = OutputBufArea + sizeof(ListenerMessageHeader);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user