This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb-7.0 on osx



On Oct 9, 2009, at 2:56 PM, Jack Howarth wrote:


On Fri, Oct 09, 2009 at 10:04:20AM +0200, Tristan Gingold wrote:

On Oct 8, 2009, at 6:56 PM, Tobias Hahn wrote:
Also, I have not yet managed to debug 32bit executables. I have tried
various build options (i386-apple-darwin10, i686-apple-darwin10) but
none seemed to work. It always complains that it cannot read
mach-o-i386 files.


Any ideas on this one?

I forgot to say: if you configure gdb for i386-darwin, it should work.


Tristan.

Tristan, I never got around to testing that alternative. Does a build for i386-darwin properly load x86_64 binaries in gdb 7.0 or does it suffer the same issue as the x86_64 darwin build did for loading i386 binaries?

It should. Before switching to Snow Leopard, I always built using the Apple gcc, which was an i386 gcc and
I checked it could handle both i386 and x86_64. But you need to configure with --enable-64-bit-bfd
(important!).


Could you confirm ?

Tristan.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]