[RFC] 03/10 Add non-stop global

Pedro Alves pedro@codesourcery.com
Fri May 9 02:24:00 GMT 2008


A Thursday 08 May 2008 12:34:02, Eli Zaretskii wrote:
> > From: Pedro Alves <pedro@codesourcery.com>
> > Date: Tue, 6 May 2008 16:46:54 +0100
> >
> > +  add_setshow_boolean_cmd ("non-stop", no_class,
> > +			   &non_stop_1, _("\
> > +Set whether gdb controls the inferior in non-stop mode."), _("\
> > +Show whether gdb controls the inferior in non-stop mode."), _("\
> > +Tells gdb whether to control the inferior in non-stop mode."),
>
> Please add more text to the one-line doc string to explain a bit about
> what happens in non-stop mode.
>
> Thanks.

Like this?  See attached.

I'll work on docs and post patch afterwards.  Where in the
manual should this go?

(gdb) help set non-stop
Set whether gdb controls the inferior in non-stop mode.
When debugging a multi-threaded program and this setting is
off (the default, also called all-stop mode), when one thread stops
(for a breakpoint, watchpoint, exception, or similar events), GDB stops
all other threads in the program while you interact with the thread of
interest.  When you continue or step a thread, you can allow the other
threads to run, or have them remain stopped, but while you inspect any
thread's state, all threads stop.

In non-stop mode, when one thread stops, other threads can continue
to run freely.  You'll be able to step each thread independently,
leave it stopped or free to run as needed.
(gdb)                   

-- 
Pedro Alves
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 003-non_stop_global.diff
Type: text/x-diff
Size: 3249 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080509/7cd69469/attachment.bin>


More information about the Gdb-patches mailing list