Re: gdb darwin target on Linux host?

Stan Shebs
2010-10-20T17:12:41Z

On 10/20/10 8:24 AM, Peter Steiner wrote:
> ok - but the packaged Apple darwin gdb (shipped with my install) CAN
> read the native binaries. So, what is the difference? Another/patched
> libbfd used by Apple?
>
> (e.g. http://www.opensource.apple.com/tarballs/gdb/gdb-1469.tar.gz
> gdb version is 6.3.50.20050815-cvs)

"Patched" is, shall we say, an understatement. :-)

> however I do not want to debug natively (or my question here would be
> pointless), I want to cross-debug using a Linux host.

So, uh, once you get the executable read in, how exactly do you expect
to remote-control execution from Linux-land? Is there a Darwin
GDBserver or equivalent that I don't know of? There is a kernel
debugging setup, but it's not useful for apps.

Stan