[Converted from Gnats 2021] I am trying to debug a shared library which is loaded by the 'driver' application. The 'driver' application has been stripped. Attempting to set a pending breakpoint on the source code in the library fails since the main application is stripped. A workaround would be to try to set same breakpoint after some library with debug symbols has been loaded (this is cumbersome and unfeasible if i am debugging the application from within Eclipse). Release: gdb cvs-current Environment: linux/x86
Fix: linespec.c (in symtab_from_filename function) comment out the following lines: if (!have_full_symbols () && !have_partial_symbols ()) error (_("No symbol table is loaded. Use the \"file\" command."));
This is fixed in mainline: 2008-08-20 Pedro Alves <pedro@codesourcery.com> * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if there are no symbols loaded, instead of throwing a generic error. (decode_variable): Likewise. In your case, GDB will now ask you if you want to leave the breakpoint pending.