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 seems to be broken on darwin 10.5.8 and later



On 30 Sep 2009, at 18:20, Jack Howarth wrote:


Now gdb errors out earlier and claims that darwin executables
aren't valid executable files. Is anyone else seeing that on
darwin?

Since you mentioned later that you are on 10.6, might the problem be that previously you only tested gdb on programs compiled under 10.5.x or with "-mmacosx-version-min 10.5" (or earlier), while you are now trying with a program compiled on and for 10.6? Apple added/changed some things to the Mach-O object format in 10.6 (just like in 10.5), and e.g. (some?) binaries compiled for 10.6 are not recognised as valid executables at all on 10.5 or earlier. gdb might be confused for similar reasons.


You may want to try compiling your program with "-mmacosx-version-min 10.5" and check again.


Jonas



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