From: Stan Shebs <stan@codesourcery.com>
To: Tom Tromey <tromey@redhat.com>
Cc: GDB Development <gdb@sourceware.org>
Subject: Re: multi-{inferior,exec}
Date: Fri, 10 Sep 2010 23:07:00 -0000 [thread overview]
Message-ID: <4C8ABA20.3010701@codesourcery.com> (raw)
In-Reply-To: <m3iq2djm9h.fsf@fleche.redhat.com>
Tom Tromey wrote:
> Another use case would be putting a breakpoint on a particular function,
> say from some kind of symbol view. After some reflection, I think the
> solution in this case lies in a linespec extension, not in I/T sets. In
> particular:
>
> break [*] #libsomething.so#function
>
The '#' syntax is in the old spec actually, you even commented about it
in http://sourceware.org/ml/gdb/2008-08/msg00177.html :-)
>
> I also looked into another idea we discussed -- having a kind of
> meta-breakpoint for I/T sets that sets new concrete breakpoints when the
> appropriate events occur.
>
> This means associating new metadata with a new kind of breakpoint and
> coming up with a new command name. This seems like more work, for a
> result that is not as nice to use.
>
What I've been doing for now for global breakpoints is to add the
quasi-i/t set as another attribute of a breakpoint, a la thread or
cond_string. This then is both interpreted by GDB, for processes that
are currently under GDB's control, and passed to a kernel module that is
monitoring all other processes for hits.
Stan
next prev parent reply other threads:[~2010-09-10 23:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-03 22:41 multi-{inferior,exec} Tom Tromey
2010-09-04 6:26 ` multi-{inferior,exec} Jan Kratochvil
2010-09-05 17:16 ` multi-{inferior,exec} Nenad Vukicevic
2010-09-07 17:04 ` multi-{inferior,exec} Tom Tromey
2010-09-07 21:34 ` multi-{inferior,exec} Daniel Jacobowitz
2010-09-07 21:50 ` multi-{inferior,exec} Nenad Vukicevic
2010-09-10 21:56 ` multi-{inferior,exec} Tom Tromey
2010-09-10 23:07 ` Stan Shebs [this message]
2010-09-11 1:46 ` multi-{inferior,exec} Tom Tromey
2010-09-10 22:52 ` multi-{inferior,exec} Stan Shebs
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=4C8ABA20.3010701@codesourcery.com \
--to=stan@codesourcery.com \
--cc=gdb@sourceware.org \
--cc=tromey@redhat.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