Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 28 Jun 2012 23:33:52 +0400
From: Solar Designer <>
Subject: Apple's gdb wrapper


Does anyone in here happen to know whether/how to use Apple's gdb build
and wrapper on Mac OS X to debug a PPC program on an Intel Mac?

Their /usr/bin/gdb is actually a shell script that supports "--arch ppc",
but maybe that's just for analysis of coredumps or for some other
limited functionality.  Trying to use it, I get:

$ gdb --arch ppc 
GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct  2 04:14:42 UTC 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=powerpc-apple-darwin".
(gdb) target exec ../run/john
Reading symbols for shared libraries ...... done
(gdb) r -te=0
Starting program: /Users/user/john/magnum-jumbo/run/john -te=0
Don't know how to run.  Try "help target".

Notice that "--arch ppc" appears to have worked, since this prints
"--host=i386-apple-darwin --target=powerpc-apple-darwin".

I haven't tried Googling this yet.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.