This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to configure gdb to support '--arch=i386' on Mac OS X
- From: Michael Snyder <msnyder at vmware dot com>
- To: n179911 <n179911 at gmail dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Wed, 07 Oct 2009 11:31:33 -0700
- Subject: Re: How to configure gdb to support '--arch=i386' on Mac OS X
- References: <3b9893450910071109p19138faam7653bd1e030c57a4@mail.gmail.com>
n179911 wrote:
Hi,
I have compiled gdb 7.0 on Mac OS X. And I have configured XCode to
use this new version of gdb 7.0.
But when I start debug my XCode project it said gdb can't recognize
the option '--arch=i386'. Here is the log of my error:
[Session started at 2009-10-07 11:00:43 -0700.]
/Users/n179911/bin/gdb/bin/gdb: unrecognized option `--arch=i386'
Use `/Users/n179911/bin/gdb/bin/gdb --help' for a complete list of options.
The Debugger has exited with status 1.The Debugger has exited with status
Can you please tell me how to build gdb to support '--arch-i386' option?
I don't think this has ever been a command line option in fsf gdb.
Maybe it is one that was added to Apple's version of gdb.
Try running `/Users/n179911/bin/gdb/bin/gdb --help', and
then run the same command using your installed gdb that came
with Mac OS. My guess is that the Mac version will list
"--arch" among the command line options, but the fsf version
will not (mine doesn't).