Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <vladimir@codesourcery.com>
To: gdb-patches@sources.redhat.com
Subject: Re: Add a third mode to "breakpoints always-inserted", and make it the default
Date: Tue, 12 Aug 2008 06:23:00 -0000	[thread overview]
Message-ID: <g7ra89$kcr$1@ger.gmane.org> (raw)
In-Reply-To: <200808120034.25338.pedro@codesourcery.com>

Pedro Alves wrote:

> Non-stop mode requires that breakpoints always be inserted
> in the inferior.  We currently set that with "set breakpoints always-inserted"
> prior to switching to non-stop mode with "set non-stop on".
> 
> The default setting of "set breakpoints always-inserted" is "off",
> as that is how GDB has been behaving for ages.
> 
> Since non-stop requires breakpoints always-in, its just cumbersome
> to have to issue more than one command to enable non-stop mode.
> 
> So, this patch changes the "set breakpoints always-inserted" setting to
> be a three-state.  on and off, the same as before, and a new mode,
> "follow-non-stop".  In the latter mode, GDB will behave as "on", if
> we're in non-stop mode, and as "off" if we're in all-stop mode.
> 
> This mode will be the default.
> 
>  (gdb) show non-stop
>  Controlling the inferior in non-stop mode is off.
> 
> We're in all-stop.
> 
>  (gdb) show breakpoint always-inserted
>  Always inserted breakpoint mode is follow-non-stop (currently off).
> 
> GDB shows that the effect is as if "off".
> 
>  (gdb) set non-stop on
> 
> Turns non-stop on.
> 
>  (gdb) show breakpoint always-inserted
>  Always inserted breakpoint mode is follow-non-stop (currently on).
> 
> GDB shows that the effect is as if "on".
> 
>  (gdb) set non-stop off
> 
> Back to all-stop.
> 
>  (gdb) set breakpoint always-inserted on
> 
> Force "on".  Useful for testing.
> 
>  (gdb) show breakpoint always-inserted
>  Always inserted breakpoint mode is on.
> 
> Now GDB shows that "on", independently of the non-stop mode.
> 
> What do you think?

Well, this is smart, but do we need it? As I've said in earlier email, I'm no
longer sure we need one command to enable everything. 

- Volodya



  parent reply	other threads:[~2008-08-12  6:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-11 23:34 Pedro Alves
2008-08-12  1:52 ` Pedro Alves
2008-08-12  6:23 ` Vladimir Prus [this message]
2008-08-12 18:18 ` Eli Zaretskii
2008-08-12 20:07   ` Pedro Alves
2008-08-12 20:12     ` Daniel Jacobowitz
2008-08-12 20:37       ` Pedro Alves
2008-08-12 20:41         ` Daniel Jacobowitz
2008-08-12 21:45           ` Pedro Alves
2008-08-12 23:06             ` Daniel Jacobowitz
2008-08-13  3:19               ` Eli Zaretskii
2008-08-13 14:01       ` 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='g7ra89$kcr$1@ger.gmane.org' \
    --to=vladimir@codesourcery.com \
    --cc=gdb-patches@sources.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