Break on library load before main

Aleksey Midenkov
Mon Jun 30 11:17:00 GMT 2014

I tried to stop execution before main() with following methods:

1. break dlopen
2. catch load
3. catch syscall uselib

Nothing works! When I issue 'start', all libraries get loaded without
stop before main(). I should mention, that 'catch load' somehow works.
It stops somewhere, but very late (see attachment for output log).

I want to stop GDB before 'Loaded symbols for
How could I possibly achieve that?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb.log
Type: text/x-log
Size: 25313 bytes
Desc: not available
URL: <>

More information about the Gdb mailing list