* gdb 7.0 on darwin 10
@ 2009-10-12 16:26 Vincent Bénony
2009-10-13 7:53 ` Tristan Gingold
2009-10-13 10:59 ` Tristan Gingold
0 siblings, 2 replies; 3+ messages in thread
From: Vincent Bénony @ 2009-10-12 16:26 UTC (permalink / raw)
To: gdb
Hi there !
I'm pretty impressed by the new functionalities of GDB 7.0, which
works pretty well on my Linux box. But, I've some problem with the
darwin version.
I currently use an iMac under darwin 10 (Snow Leopard).
First of all, it seems that the dyld struct used by gdb to catch dylib
loading have changed: the version number was 1 under darwin 9, and is
now 7. So, commands like "info sharedlibrary" do not work unless I
change the DYLD_VERSION macro definition in gdb/solib-darwin.c file.
By the way, by changing the definition on DYLD_VERSION and by testing
everywhere in the code that version is less or equal to 7, I finally
got gdb reading symbols of my dylib files correctly !
But now, I've another problem: it seems that GDB do not handle
coalesced sections, so symbols address are mostly wrong for functions
defined in a header file. Did I missed something in arguments to give
to configure script ?
I used :
./configure --disable-werror
I already tried "--host=i386-apple-darwin9 --build=i386-apple-darwin9
--target=i386-apple-darwin9"
Note that I only want to debug 32 bits applications, so I do not used
--enable-64-bit-bfd, but this switch do not change anything in MachO
loading.
Thank you
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gdb 7.0 on darwin 10
2009-10-12 16:26 gdb 7.0 on darwin 10 Vincent Bénony
@ 2009-10-13 7:53 ` Tristan Gingold
2009-10-13 10:59 ` Tristan Gingold
1 sibling, 0 replies; 3+ messages in thread
From: Tristan Gingold @ 2009-10-13 7:53 UTC (permalink / raw)
To: Vincent Bénony; +Cc: gdb
On Oct 12, 2009, at 6:26 PM, Vincent Bénony wrote:
> Hi there !
Hi,
> I'm pretty impressed by the new functionalities of GDB 7.0, which
> works pretty well on my Linux box. But, I've some problem with the
> darwin version.
>
> I currently use an iMac under darwin 10 (Snow Leopard).
>
> First of all, it seems that the dyld struct used by gdb to catch
> dylib loading have changed: the version number was 1 under darwin 9,
> and is now 7. So, commands like "info sharedlibrary" do not work
> unless I change the DYLD_VERSION macro definition in gdb/solib-
> darwin.c file. By the way, by changing the definition on
> DYLD_VERSION and by testing everywhere in the code that version is
> less or equal to 7, I finally got gdb reading symbols of my dylib
> files correctly !
Thanks for the details. I will fix that.
> But now, I've another problem: it seems that GDB do not handle
> coalesced sections, so symbols address are mostly wrong for
> functions defined in a header file. Did I missed something in
> arguments to give to configure script ?
GDB doesn't handle well coalesced sections, dead-stripped binaries or
common symbols on Darwin. We are
working on that. One possible work-around is to use a dsym file (see
dsymutil).
Tristan.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gdb 7.0 on darwin 10
2009-10-12 16:26 gdb 7.0 on darwin 10 Vincent Bénony
2009-10-13 7:53 ` Tristan Gingold
@ 2009-10-13 10:59 ` Tristan Gingold
1 sibling, 0 replies; 3+ messages in thread
From: Tristan Gingold @ 2009-10-13 10:59 UTC (permalink / raw)
To: Vincent Bénony; +Cc: gdb
On Oct 12, 2009, at 6:26 PM, Vincent Bénony wrote:
> Hi there !
>
> I'm pretty impressed by the new functionalities of GDB 7.0, which
> works pretty well on my Linux box. But, I've some problem with the
> darwin version.
>
> I currently use an iMac under darwin 10 (Snow Leopard).
>
> First of all, it seems that the dyld struct used by gdb to catch
> dylib loading have changed: the version number was 1 under darwin 9,
> and is now 7. So, commands like "info sharedlibrary" do not work
> unless I change the DYLD_VERSION macro definition in gdb/solib-
> darwin.c file. By the way, by changing the definition on
> DYLD_VERSION and by testing everywhere in the code that version is
> less or equal to 7, I finally got gdb reading symbols of my dylib
> files correctly !
Hi,
this is now fixed in gdb.
Thanks,
Tristan.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-13 10:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-12 16:26 gdb 7.0 on darwin 10 Vincent Bénony
2009-10-13 7:53 ` Tristan Gingold
2009-10-13 10:59 ` Tristan Gingold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox