Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: RFC: hacky fix for PR 12406
Date: Thu, 12 Jan 2012 21:41:00 -0000	[thread overview]
Message-ID: <m3fwfkzk0i.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20120112042946.GM31383@adacore.com> (Joel Brobecker's message of	"Thu, 12 Jan 2012 08:29:46 +0400")

>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> An idea that crossed my mind: Add a flag to each entry in our SO
Joel> list. Everytime we stop, we use that flag to determine which entries
Joel> are new. We can probably use something like the normal-stop hook to
Joel> set the flag just before giving the prompt back to the user. Would
Joel> that work? It would support the situation I mentioned above where
Joel> we get one breakpoint event for multiple shared libraries...

Thanks for the idea.  I will give it a try.

Tom> [Inferior loaded library /lib64/ld-linux-x86-64.so.2]
Tom> Stopped due to shared library event

Gary> Could this be a separate option, trace-solib-events maybe?  It seems
Gary> like this printing might also be useful when stop-on-solib-events is
Gary> off.

Gary> Also, as Jan said, it would be nice to have unload notifications too.

This comment inspired me to take another look at the whole problem.

I actually do not much like stop-on-solib-events.  I think 'catch'
commands are better, because they offer the user more control: commands
at the stop point, "silent", conditions.

So now I am thinking that, while I may still add the notification in
some form, I will also resurrect "catch load" and "catch unload",
something like "catch load [REGEX] [if ...]"

Tom


  reply	other threads:[~2012-01-12 21:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-11 19:25 Tom Tromey
2012-01-12  0:12 ` Jan Kratochvil
2012-01-12  5:59 ` Joel Brobecker
2012-01-12 21:41   ` Tom Tromey [this message]
2012-01-13 15:48     ` Gary Benson
2012-01-12 11:40 ` Gary Benson

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=m3fwfkzk0i.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    /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