Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nenad Vukicevic <nenad@intrepid.com>
To: gdb@sourceware.org
Subject: Re: multi-{inferior,exec}
Date: Sun, 05 Sep 2010 17:16:00 -0000	[thread overview]
Message-ID: <4C83D050.7010903@intrepid.com> (raw)
In-Reply-To: <m3vd6m30y2.fsf@fleche.redhat.com>


> I think the next missing bit is support for I/T sets.  E.g., I wanted to
> try to debug g++ but put a breakpoint in its cc1plus subprocess.  You
> can do this today, but only clumsily: either by using add-inferior to
> load the symbols for cc1plus, or by using "catch exec" and setting the
> breakpoint at exec time.  I/T sets would let users set this sort of
> breakpoint more easily.

I think that I/T sets is a very useful addition. Recently we've made 
some changes for debugging of the UPC
- http://www.gnu.org/software/gcc/projects/gupc.html - programs. 
However, as our run-time contains
a thread that is not UPC language related, I made some changes and 
created a "upcmode"
of operation where commands like breakpoint, info threads, .. apply only 
to UPC threads (a set in
your example). Also, "c -a" like commands apply only to UPC threads. 
Same with "thread apply all".
In essence you are focusing your debugging to a group of threads. 
Switching off "upcmode" makes
everything go back to normal (in your case selecting a thread set "all" 
turns off this feature).

Also, having set names is better then numbers (e.g. "upc" set of threads 
for UPC program set) and using
names or numbers should be interchangeable.

We also had to implement "collective" breakpoints where breakpoint is 
announced to user only
once all the threads reached it. In "upcmode" every breakpoint is a 
collective one, unless you
explicitly turn this feature off.

Nenad


  parent reply	other threads:[~2010-09-05 17:16 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 ` Nenad Vukicevic [this message]
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   ` multi-{inferior,exec} Stan Shebs
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=4C83D050.7010903@intrepid.com \
    --to=nenad@intrepid.com \
    --cc=gdb@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