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: How to configure gdb to support '--arch=i386' on Mac OS X



On Oct 8, 2009, at 1:18 AM, Jack Howarth wrote:


On Wed, Oct 07, 2009 at 02:22:20PM -0700, Stan Shebs wrote:
Michael Snyder wrote:
Yeahhhh, this isn't going to work.

Your binary is in... I forget what it's called -- oh, "mach-o" format.
Our (fsf) gdb does not know how to read that file format. And it
would be a huge job to port over the changes in apple gdb that tell
it how to read mach-o files (besides the fact that they are "fat"
files, or at least potentially might be). m
The Mach-O part does work in 7.0, thanks to Tristan and AdaCore (check
out gdb/machoread.c). I don't think fatness-handling is there, although
at the Xcode level one has to specifically ask for fat builds anyway, so
one could avoid that particular obstacle and thus be well- positioned to
smack one's face into the next wall. :-)


Stan


Stan,
I am puzzled about the fact that the current x86_64-apple-darwin10
build of FSF gdb 7.0 is unable to load i386 binaries like x86_64 gdb
can under linux. Do you think this should be possible without resorting
to fat-binaries for darwin?

That's unexpected. It least it worked in the past. Will try to fix that.


Tristan.


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