debugging - How to debug .so on aix which is invoked from java -
debugging - How to debug .so on aix which is invoked from java -
i have plane c code after built gives .so file on aix, , .so file invokes java, how can debug .so file?
cheers bala
check .so built debug symbols. if using gcc or g++, done using -g option. can attach gdb jvm process process number because .so run there. using appropriate equivalent "process=`ps | grep java | cutting -d' ' -f1`; gdb -p $process". add together source directory debugging using gdb command "dir $sourcedir" substituting path source directory $sourcedir. finally, set breakpoint @ desired line of source code .so.
i referred info blog entry linux - gdb debug jni tomcat.
debugging aix dbg
Comments
Post a Comment