Could anyone give me pointers to information on how to debug shared
libraries with gdb ? I seem to get garbage names on the stack when
I step into functions in the shared library and do a backtrace.
For example:
(gdb) where
#0 0xef740750 in _environ ()
#1 0xef74074c in _environ ()
#2 0xef74070c in _environ ()
#3 0x10740 in foo () at test2.c:11
#4 0x1071c in main (argc=1, argv=0xeffffa24) at test2.c:5
Where _environ should be function names "bar()" and "baz()" in the
shared library.
I'm on SunOS 5.4 using gcc 2.7.2 and gdb 4.11 . Could there be a
problem with one of the versions I'm using that an upgrade could help ?
TIA.