You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I patched GDB to fix its mdebug loading problems. Works well with Ares gdb stub. This then lead me to want to use mdebug symbols from IDO compiled things. But of course, you get minimal symbols for code built in non debug mode. Don't even get the typdefs.
To work around this, I made a small .c file that just imports the header files from ultralib, and builds that single file with -g, (and -woff 625 to disable Empty declaration warnings). I can load that .o into GDB and then easily interpret memory as various structs when debugging non-debug build libultra code.
I don't know if it would be in scope for this project to do this, and optionally output one "debug helper" .o file people can load into GDB with just debugging information like that, but I just thought I would ask. It seemed like it may be useful, and I don't know if this solution will occur to everyone. It was at least a bit unintuitive/unnatural to me. Maybe it's too obscure to bother with.
Just handy to be able to debug/explore and build scripts.
I patched GDB to fix its mdebug loading problems. Works well with Ares gdb stub. This then lead me to want to use mdebug symbols from IDO compiled things. But of course, you get minimal symbols for code built in non debug mode. Don't even get the typdefs.
To work around this, I made a small .c file that just imports the header files from ultralib, and builds that single file with -g, (and -woff 625 to disable Empty declaration warnings). I can load that .o into GDB and then easily interpret memory as various structs when debugging non-debug build libultra code.
I don't know if it would be in scope for this project to do this, and optionally output one "debug helper" .o file people can load into GDB with just debugging information like that, but I just thought I would ask. It seemed like it may be useful, and I don't know if this solution will occur to everyone. It was at least a bit unintuitive/unnatural to me. Maybe it's too obscure to bother with.
Just handy to be able to debug/explore and build scripts.
The text was updated successfully, but these errors were encountered: