This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Break on library load before main


Aleksey Midenkov <midenok@gmail.com> writes:

> 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).

Try set stop-on-solib-events 1.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]