gdb tips and tricks

Debugging a Shared Library with GDB

Enter “set stop-on-solib-events 1” on the gdb command line. gdb will halt when the parent program tries to access a shared library.