Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Aleksey Midenkov <midenok@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Break on library load before main
Date: Mon, 30 Jun 2014 11:54:00 -0000	[thread overview]
Message-ID: <mvmzjgu4nqe.fsf@hawking.suse.de> (raw)
In-Reply-To: <CAF8BazAnV9noKDG2LzmkYKCNGRi6DKgGc-=q3TODQpa4G6OD5A@mail.gmail.com>	(Aleksey Midenkov's message of "Mon, 30 Jun 2014 15:16:57 +0400")

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


  reply	other threads:[~2014-06-30 11:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-30 11:17 Aleksey Midenkov
2014-06-30 11:54 ` Andreas Schwab [this message]
2014-06-30 12:00   ` Aleksey Midenkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mvmzjgu4nqe.fsf@hawking.suse.de \
    --to=schwab@suse.de \
    --cc=gdb@sourceware.org \
    --cc=midenok@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox