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

n179911
2009-10-07T20:21:45Z

From

http://developer.apple.com/mac/library/documentation/DeveloperTools/Reference/XcodeUserDefaultRef/100-Xcode_User_Defaults/UserDefaultRef.html#//apple%5Fref/doc/uid/TP40005535-CH3-SW54

it mentions I can switch a different GDB in xcode.

On Wed, Oct 7, 2009 at 1:19 PM, Daniel Jacobowitz <drow@false.org> wrote:
> 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
>