We are debugging a shared library using gdb-4.16. Sources were compiled
with gcc-126.96.36.199 and linked with ld (binutils-188.8.131.52.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 ...