From: Doug Evans <dje@google.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] Allowing all threads of all|current process(es) to be resumed [new command + docs]
Date: Sun, 31 May 2009 16:34:00 -0000 [thread overview]
Message-ID: <e394668d0905310933y741a97d6j3e114e378e3957bf@mail.gmail.com> (raw)
In-Reply-To: <200905301151.52892.pedro@codesourcery.com>
On Sat, May 30, 2009 at 3:51 AM, Pedro Alves <pedro@codesourcery.com> wrote:
> Currently, with the generic framework, if GDB is attached to
> multiple processes, issuing a "continue", "next", etc., makes GDB
> resume all threads of all processes. But, with the multi-forks
> framework, GDB only debugs one of the forks at a given time, while
> leaving the others stopped.
Except in non-stop mode when "c -a" is required to continue all
threads, "c" by itself just continues the current thread (right?).
[And IWBN if there were a way to continue a subgroup of threads though
I realize "c N" is already taken. "c [-a] [-t T1 T2 T3] [--] [N]"? I
realize that's perhaps not ideal, but short of adding another command
it's the first thing that came to me. :-) And no claim is made that
this hasn't been discussed before ...]
I wonder what the normal usage pattern will be of multiprocess debugging.
An alternative to "set scheduler-multiple on|off" is to add another
flag to the various commands.
"scheduler-multiple" may be The Right Thing To Do, but adding more
global state that controls command behaviour gives me pause
("exec-direction" anyone?). Another way to add scheduler-locking
would have been to add options to "step", etc. "s -l" or some such
["l" for "locking" though "locking" out of place here, it's just an
example anyway]. It's easier to script:
# This isn't implementable today, it's just for illustration.
define lstep
set $save_scheduler_locking [get scheduler-locking]
try
step
finally
set scheduler-locking $save_scheduler_locking
end
end
versus
define lstep
step -l
end
I'd be curious to hear what others think.
next prev parent reply other threads:[~2009-05-31 16:34 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-30 10:51 Pedro Alves
2009-05-30 13:10 ` Eli Zaretskii
2009-05-30 16:01 ` Pedro Alves
2009-05-30 17:12 ` Eli Zaretskii
2009-06-08 11:59 ` Pedro Alves
2009-06-09 4:01 ` Eli Zaretskii
2009-06-11 11:59 ` Pedro Alves
2009-05-31 16:34 ` Doug Evans [this message]
2009-05-31 16:40 ` Doug Evans
2009-05-31 18:31 ` Tom Tromey
2009-05-31 18:38 ` Doug Evans
2009-05-31 22:06 ` Pedro Alves
2009-06-01 15:55 ` Doug Evans
2009-06-03 14:06 ` Pedro Alves
2009-06-01 14:29 ` Marc Khouzam
2009-06-03 13:49 ` Pedro Alves
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=e394668d0905310933y741a97d6j3e114e378e3957bf@mail.gmail.com \
--to=dje@google.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.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