Re: GDB problems and version
Re: GDB problems and version
- Subject: Re: GDB problems and version
- From: Christian Thalinger <email@hidden>
- Date: Thu, 16 Jul 2009 11:11:29 +0200
Jonas Maebe wrote:
> Did you compile it using DWARF with dSYM? Last time I tried, dSYM
> bundles didn't work yet with FSF gdb. If you do not run dsymutil and
> keep the object files around (since the DWARF symbol information is
> not copied into the linked binary on Mac OS X), you may have better
> luck (although I haven't tried debugging shared libraries yet).
Not sure about that dSYM stuff (never heard about that), but I never
used dsymutil. So the answer is very likely no.
I just rebuilt with -gdwarf-2 and after a symbol-file GDB was able to
print some debugging information:
(gdb) symbol-file libjvm.dylib
Load new symbol table from
"/Users/twisti/mlvm/hotspot/build/bsd/bsd_i486_compiler2/jvmg/libjvm.dylib"?
(y or n) y
Reading symbols from
/Users/twisti/mlvm/hotspot/build/bsd/bsd_i486_compiler2/jvmg/libjvm.dylib...done.
(gdb) bt
#0 0x95bd046e in ?? ()
#1 0x95bfb3e6 in ?? ()
#2 0x00001403 in CallStaticJavaHandleNode::compute_padding
(this=0x54485244, current_offset=-1073754372) at
../generated/adfiles/ad_x86_32.cpp:122
#3 0x00001503 in emit_rm (cbuf=..., f1=-1073754372, f2=0, f3=16843013)
at ../generated/adfiles/ad_x86_32.cpp:144
#4 0x00000000 in ?? ()
But this does not look very good:
(gdb) thr 2
[Switching to thread 2 (Thread 0x1503 of process 44673)]#0 0x95ca5136
in ?? ()
(gdb) bt
#0 0x95ca5136 in ?? ()
#1 0x95ca4d1b in ?? ()
warning: (Internal error: pc 0x20b in read in psymtab, but not in symtab.)
warning: (Internal error: pc 0x20a in read in psymtab, but not in symtab.)
warning: (Internal error: pc 0x20a in read in psymtab, but not in symtab.)
#2 0x0000020b in ?? (warning: (Internal error: pc 0x20a in read in
psymtab, but not in symtab.)
)
warning: (Internal error: pc 0x20a in read in psymtab, but not in symtab.)
#3 0x00000000 in ?? ()
> The AdaCore guy doing the Mac OS X work is Tristan Gingold, gingold
> _at adacore _dot com. Posting to the gdb list with a CC to him is
> probably the best way to report problems, yes.
Thanks. I really should do that.
-- Christian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden