This is the mail archive of the gdb-prs@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]

[Bug gdb/13901] no handler for the OS ABI "Darwin" when gdb 7.4built as i386-apple-darwin10.8.0


http://sourceware.org/bugzilla/show_bug.cgi?id=13901

--- Comment #8 from gingold at adacore dot com <gingold at adacore dot com> 2012-04-02 14:40:56 UTC ---
On Apr 2, 2012, at 4:34 PM, howarth at bromo dot med.uc.edu wrote:

> http://sourceware.org/bugzilla/show_bug.cgi?id=13901
> 
> --- Comment #7 from Jack Howarth <howarth at bromo dot med.uc.edu> 2012-04-02 14:34:09 UTC ---
> On Mon, Apr 02, 2012 at 01:57:55PM +0000, gingold at adacore dot com wrote:
>> http://sourceware.org/bugzilla/show_bug.cgi?id=13901
>> 
>> --- Comment #6 from gingold at adacore dot com <gingold at adacore dot com> 2012-04-02 13:57:55 UTC ---
>> On Apr 2, 2012, at 3:50 PM, howarth at bromo dot med.uc.edu wrote:
>> 
>>> http://sourceware.org/bugzilla/show_bug.cgi?id=13901
>>> 
>>> --- Comment #5 from Jack Howarth <howarth at bromo dot med.uc.edu> 2012-04-02 13:50:37 UTC ---
>>> (In reply to comment #4)
>>>> No, that's a different issue: you haven't configured gdb for x86-64.
>>>> Try with: --enable-64-bit-bfd 
>>>> 
>>>> Tristan.
>>> 
>>> Confirmed that --enable-64-bit-bfd solves the problem debugging x86_64
>>> binaries.
>>> Considering that the pool of EMT64 capable Intel macs greatly outways that of
>>> non-EMT64
>>> units, shouldn't configure default to adding --enable-64-bit-bfd for
>>> i386-apple-darwin?
>> 
>> 
>> No, to be in line with all other platforms: there is a performance impact on
>> bfd side.
> 
> Tristan,
>   How bad is the performance impact?

All address handling in bfd will be 64 bits instead of 32 bits.

> I suspect that fink will want the i386
> fink
> gdb package to support x86_64 binaries as well. Also perhaps the error handling
> for 
> the default build of i386 gdb could be improved. It would be nicer if the
> default
> i386 build of gdb simply refused to load x86_64 binaries and emitted an error
> message
> indicating that the gdb wasn't built with --enable-64-bit-bfd to aid end-users
> with 
> solving the problem.

There is already a generic error message:

warning: A handler for the OS ABI "Darwin" is not built into this configuration
of GDB.  Attempting to continue with the default i386:x86-64 settings.

Not very user friendly, I agree.

IMHO, this is an issue for fink maintainers, most final users don't compiler
gdb themselves.

Might be interesting to understand how ELF handles that.

Tristan.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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