I am using gdb to debug my executable which is linked to a shared
library.
Having set a break point at a function in the shared library, I run
the executable and gdb shows the message:
"cannot insert breakpoint
Temporarily disabled breakpoint in shared library"
And gdb stops at the end of the function.
Here is how I created the shared library and executable:
gcc -g -c -fPIC foo.c
gcc -shared -o libfoo.so.1.0 foo.o
gcc -o main main.c -L. -lfoo
Thanks for any hints!