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: Joel Brobecker <brobecker at adacore dot com>
- To: n179911 <n179911 at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 7 Oct 2009 11:31:58 -0700
- Subject: Re: How to configure gdb to support '--arch=i386' on Mac OS X
- References: <3b9893450910071109p19138faam7653bd1e030c57a4@mail.gmail.com>
> 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:
I suspect your Xcode is thinking it is running Apple's version of GDB,
and is trying to tell GDB which arch to select when your binary is
bi-arch. If you want to use the FSF GDB, you might have some luck
adding that command line switch and ignoring it. See gdb/main.c.
--
Joel