This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb darwin target on Linux host?
> > file /home/exchange/ls
> > /home/exchange/ls: Mach-O fat file with 2 architectures
>
> You can't debug fat binaries. You have to extract the executable you really want to debug.
>
tried this - no luck at all!
lipo -extract x86_64 /bin/ls -output ls.64
lipo -extract i386 /bin/ls -output ls.32
gdb-7.2 root# ./gdb/gdb /opt/src/ls.64
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin10.0.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
"/opt/src/ls.64": not in executable format: File format not recognized
gdb-7.2 root# ./gdb/gdb /opt/src/ls.32
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin10.0.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
"/opt/src/ls.32": not in executable format: File format not recognized
(this is all native darwin box)