GDB 7.5 on OS X 10.7
Kaushik Srenevasan
ks@sysenter.org
Fri Aug 31 04:37:00 GMT 2012
Is GDB (7.5) known to work on OS X 10.7? I compiled it from GIT with
all defaults except the prefix but don't seem to be able to get even
the basic commands (bt, break) to work.
file ~/src/jdk7/build/macosx-x86_64-debug/bin/java
set args -classpath ~/src/tmp helloworld
catch load libjvm
Catchpoint 1
Inferior loaded
/Users/ks/src/jdk7/build/macosx-x86_64-debug/lib/server/libjvm.dylib
0x00007fff5fc0b269 in ?? ()
(gdb) bt
#0 0x00007fff5fc0b269 in ?? ()
#1 0x00007fff5fc0b24d in ?? ()
#2 0x00000001000d1a50 in ?? ()
#3 0x00007fff5fc3b560 in ?? ()
#4 0x00000001000d1f20 in ?? ()
#5 0x00007fff5fc0540e in ?? ()
#6 0x0000000101800000 in ?? ()
#7 0x0000000100200300 in ?? ()
#8 0x0000000050403138 in ?? ()
#9 0x00007fff5fc052ea in ?? ()
#10 0x0000000100200260 in ?? ()
#11 0x00000001000d1ae8 in ?? ()
#12 0x0000000000000000 in ?? ()
(gdb) break LRG::set_mask
Cannot access memory at address 0x141be0
It looks like break was able to find the symbol's address. The address
however looks suspect to me. The target (if that matters) is a debug
build of the OpenJDK.
--- Kaushik
More information about the Gdb
mailing list