Debug ppc binary on OS X 10.6 - gdb error: don't know how to run

I have an old PowerPC Binary that runs on my system (Snow Leopard intel) using Rosetta. I wanted to debug the binary using GDB, however it tells me that it does not know how to run it. I think it could be because GDB only supports x86 binaries? I am using gdb , which comes with the Xcode environment that comes with the Mac OS X CD.

I searched and found one person with the same problem, but there were no answers. Should I install special gdb ?

+4
source share
2 answers

gdb on OS X is actually a wrapper script that gives you the ability to run gdb yourself under Rosetta.

Try something like gdb --translate --arch ppc ... (I do not have Rosetta installed and you do not want to install it, so I can not easily test it.)

+1
source

The only reasonable solution I could think of could be GDB for CW . I doubt it is worth it anyway.

0
source

Source: https://habr.com/ru/post/1343711/


All Articles