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

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -