We are debugging a shared library using gdb-4.16. Sources were compiled
with gcc-2.7.2.3 and linked with ld (binutils-2.8.1.0.1).
Trying a source list of a function linked into a shared library
(gdb) list func_foo
the de* shows only the FIRST function written into the shared
library source code file.
It is not possible to set breakpoints in the function func_foo. Also
this time, the FIRST function works fine, breakpoints can be set and
they are reached.
WHAT'S WORKING WRONG??? ...
maybe gdb ?
maybe ld ? shared library was builded from an archive libfoo_pic.a with
--whole-archive ld(1) switch
Please, a clue ...