c - How to map .so files to source files in gdb -
c - How to map .so files to source files in gdb -
i have core dump file. when seek open in gdb. able see backtrace (with address , corresponding functions) corresponding function in mapped .so files not source.
bt looks this
#0 0xf611b39c in xxfun () /lib/libxx.so.0 $file /lib/libtxx.so.0 /lib/libtxx.so.0: elf 32-bit lsb shared object, intel 80386, version 1 (sysv), not stripped
able display symbols using nm!
queries:- 1) how can map .so files source files 2) not able display info locals/args. how can these data?
when seek display
#info locals no symbol table info available. #info args no symbol table info available.
please allow me know if need more info.
exactly "n.m." commented, need libxx.so built debug info (usualy -g
switch @ compile time).
that provide both address source mapping, , info locals
, args
, etc.
c debugging gdb
Comments
Post a Comment