Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Michael Snyder <msnyder@specifix.com>
Cc: Vladimir Prus <vladimir@codesourcery.com>,
		gdb-patches@sources.redhat.com
Subject: Re: [RFA] Try2: Ignore breakpoints when reading memory.
Date: Tue, 26 Feb 2008 00:53:00 -0000	[thread overview]
Message-ID: <20080225193910.GB20216@adacore.com> (raw)
In-Reply-To: <1203967172.19253.273.camel@localhost.localdomain>

> On Sun, 2008-02-24 at 17:50 +0300, Vladimir Prus wrote:
> > This patch is the immediate prerequisite for the
> > patch that makes breakpoints always inserted.
> 
> Hmmm?  Did I miss this discussion?

I think this is part of:

    Non-stop multi-threaded debugging
    http://sourceware.org/ml/gdb/2007-11/msg00198.html

You need to leave the breakpoints inserted if you are to allow
the other threads to continue running.

> I'm not sure leaving breakpoints always inserted is a good idea.
> If gdb becomes unexpectedly disconnected from the target/child, 
> these breakpoints become an instant problem, and even if you
> can manage to re-connect, it's not a given that you can then
> remove them.

That's indeed a risk, but I believe that this behavior would not
be the default.

Incidentally, I think this could also be very useful in the context
of very very slow debugging lines. We very recently had a customer
who asked about the reason for removing the breakpoints at every stop,
because apparently with his JTAG probe, inserting 30 breakpoints and
then removing them takes a long time (~10secs). We have also verified
that writing memory takes equally long. The customer is still waiting
to hear from the manufacturer about this lack of performance which seems
a bit suspicious, but having the option of keeping the breakpoints
inserted in this case would be a nice work-around.

-- 
Joel


  reply	other threads:[~2008-02-25 19:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-24 14:58 Vladimir Prus
2008-02-24 20:08 ` Eli Zaretskii
2008-02-25 19:30 ` Michael Snyder
2008-02-26  0:53   ` Joel Brobecker [this message]
2008-03-10 20:43 ` Daniel Jacobowitz
2008-03-10 20:57   ` Vladimir Prus
2008-03-13 12:22     ` Daniel Jacobowitz
2008-03-13 13:19       ` 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=20080225193910.GB20216@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=msnyder@specifix.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