• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: GDB problems and version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: GDB problems and version
      • From: Jonas Maebe <email@hidden>
References: 
 >GDB problems and version (From: Christian Thalinger <email@hidden>)
 >Re: GDB problems and version (From: Jonas Maebe <email@hidden>)
 >Re: GDB problems and version (From: Christian Thalinger <email@hidden>)
 >Re: GDB problems and version (From: Jonas Maebe <email@hidden>)
 >Re: GDB problems and version (From: Christian Thalinger <email@hidden>)
 >Re: GDB problems and version (From: Christian Thalinger <email@hidden>)
 >Re: GDB problems and version (From: Jonas Maebe <email@hidden>)

  • Prev by Date: Re: In-class initialization of integral static const variables & Linker errors
  • Next by Date: Re: In-class initialization of integral static const variables & Linker errors
  • Previous by thread: Re: GDB problems and version
  • Next by thread: Re: GDB problems and version
  • Index(es):
    • Date
    • Thread