This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Break on library load before main
- From: Andreas Schwab <schwab at suse dot de>
- To: Aleksey Midenkov <midenok at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 30 Jun 2014 13:54:01 +0200
- Subject: Re: Break on library load before main
- Authentication-results: sourceware.org; auth=none
- References: <CAF8BazAnV9noKDG2LzmkYKCNGRi6DKgGc-=q3TODQpa4G6OD5A at mail dot gmail dot com>
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."