This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: PR13901
- From: Tristan Gingold <gingold at adacore dot com>
- To: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- Cc: gdb at sourceware dot org
- Date: Fri, 30 Mar 2012 16:18:48 +0200
- Subject: Re: PR13901
- References: <20120330134210.GA7869@bromo.med.uc.edu>
On Mar 30, 2012, at 3:42 PM, Jack Howarth wrote:
> Tristan,
> Have you noticed that recent FSF gdb releases including 7.4 have been
> non-functional when built targeting i386-apple-darwin? The run-time failures
> have changed between 7.2 and 7.4. Currently the failure is exhibited as
> errors of the form...
>
> (gdb) break main
> Breakpoint 1 at 0xd80: file himenoBMTxpa.c, line 71.
> (gdb) r
> Starting program: /Users/howarth/a.out
> darwin_set_sstep: unknown flavour: 4
> Error calling thread_get_state for GP registers for thread 0x8451lxwarning:
> Mach error at "i386-darwin-nat.c:118" in function
> "i386_darwin_fetch_inferior_registers": (os/kern) invalid argument (0x4)
>
> http://sourceware.org/bugzilla/show_bug.cgi?id=13901
>
> Is this something that is trivial to fix? It would be nice if both MacPorts
> and fink could have a functional i386 build of FSF gdb. In fink, we currently
> have gdb restricted to x86_64 fink (although the x86_64-apple-darwin build
> can debug i386 binaries fine). MacPorts has left their gdb pacakge at 7.1
> (which I guess is that last version that worked for both i386-apple-darwin
> and x86_64-apple-darwin. Thanks in advance for any clarifications.
I think that should be fixable. Will investigate.
I haven't built for i386 for a long time...
Tristan.