c++ - Could not step in cpp file when debug Openjdk8 hotspot in mac -


i compiled openjdk8 in mac. when used gdb debug simple java class(just system out), showed error no source file name init.cpp. (had added breakpoint in init.cpp: 95 line). however, step c file main.c. not sure whether had compiled openjdk8 correctly or use correct version dependencies. checked libjvm.dylib libjvm.dylib.dsym exist in ld_library_path.

[when debug in eclipse cdt, has same issue]

using env:

  mac sierra 10.12.6   gdb 7.12.1 

debug command:

  export ld_library_path=~/openjdk/build/macosx-x86_64-normal-server-fastdebug/hotspot/bsd_amd64_compiler2/fastdebug    ggdb --args ~/openjdk/build/macosx-x86_64-normal-server-fastdebug/jdk/bin/java test 

result1 (breakpoint in cpp file):

 (gdb) break init.cpp:95   no source file named init.cpp.   make breakpoint pending on future shared library load? (y or [n]) y   breakpoint 1 (init.cpp:95) pending.   (gdb) run   starting program: ~/openjdk/build/macosx-x86_64-normal-server-fastdebug/jdk/bin/java test   [new thread 0x1403 of process 94443]   warning: unhandled dyld version (15)   hello,hotspot   [inferior 1 (process 94443) exited normally] 

result2 (breakpoint in c file):

 (gdb) break main.c:125   breakpoint 2 @ 0x100007912: file ~/openjdk/jdk/src/share/bin/main.c, line 125.   (gdb) run   starting program: ~/openjdk/build/macosx-x86_64-normal-server-fastdebug/jdk/bin/java test   [new thread 0x1603 of process 94446]   warning: unhandled dyld version (15)   thread 2 hit breakpoint 2, main ()   @   ~/openjdk/jdk/src/share/bin/main.c:125  125        return jli_launch(margc, margv, 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -