Re: How to configure gdb to support '--arch=i386' on Mac OS X

Daniel Jacobowitz
2009-10-07T20:20:07Z

On Wed, Oct 07, 2009 at 01:10:00PM -0700, n179911 wrote:
> Thank you. You are right.
>
> The gdb comes with apple has '-arch' option, but gdb 7.0 does not.
>
> $ /usr/bin/gdb --help
> --translate Debug applications running under translation.
> -arch i386|armv6|x86_64|ppc Specify a gdb targetting a specific
> architecture
>
> So should I do what Joel Brobecker suggested in adding that option in
> gdb/main.c?

That is very unlikely to help. Last I looked, you can't use the FSF
GDB with Xcode; Apple has made too many changes to their version.

--
Daniel Jacobowitz
CodeSourcery