From: Daniel Jacobowitz <drow@false.org>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Keep breakpoints always inserted.
Date: Mon, 17 Mar 2008 22:21:00 -0000 [thread overview]
Message-ID: <20080317222041.GC1309@caradoc.them.org> (raw)
In-Reply-To: <200803151312.15051.vladimir@codesourcery.com>
On Sat, Mar 15, 2008 at 01:12:14PM +0300, Vladimir Prus wrote:
> > This patch is OK, if you will add the missing pieces: a NEWS entry and
> > documentation for the new command, and a testcase that enables
> > always-inserted and verifies that it isn't a brick.
>
> I've added NEW and documentation.
>
> I'm still not sure how to test this adequately.
This version is OK when Eli is happy with the documentation.
For a testcase, I agree that we need to run the whole testsuite in
this mode to get full coverage. But it's useful to have a single
test that runs in this mode even if the rest of the testsuite
doesn't, in case someone completely breaks it. That's why the
gdb.server tests run for native targets that build gdbserver,
even when the rest of the testsuite uses "run".
Could you write a test that uses "set break always-inserted" and does
something simple like running to a function and then continuing past
it to another breakpoint?
> + /* We're allowing a thread to run past a breakpoint it has
> + hit, by single-stepping the thread with the breakpoint
> + removed. In which case, we need to single-step only this
> + thread, and keep others stopped, as they can miss this
> + breakpoint if allowed to run.
> +
> + The current code actually removes all breakpoints when
> + doing this, not just the one being stepped over, so if we
> + let other threads run, we can actually miss any
> + breakpoint, not just the one at PC. */
Extra spacing here?
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2008-03-17 22:21 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-28 14:18 Vladimir Prus
2008-03-10 21:09 ` Daniel Jacobowitz
2008-03-14 20:22 ` Vladimir Prus
2008-03-15 10:13 ` Vladimir Prus
2008-03-15 15:10 ` Eli Zaretskii
2008-04-02 13:02 ` Vladimir Prus
2008-04-02 18:18 ` Eli Zaretskii
2008-03-17 22:21 ` Daniel Jacobowitz [this message]
2008-03-18 4:15 ` Eli Zaretskii
2008-03-18 6:06 ` Vladimir Prus
2008-04-03 18:10 ` Vladimir Prus
2008-04-07 15:32 ` Daniel Jacobowitz
2008-04-09 23:45 ` Vladimir Prus
2008-04-10 8:16 ` Luis Machado
2008-04-17 16:50 ` Daniel Jacobowitz
2008-04-23 21:18 ` Pedro Alves
2008-04-23 21:24 ` Daniel Jacobowitz
2008-04-24 11:22 ` Vladimir Prus
2008-04-24 12:10 ` Vladimir Prus
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=20080317222041.GC1309@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=vladimir@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