public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <dan@codesourcery.com>
To: Maxim Grigoriev <maxim@tensilica.com>
Cc: Joel Brobecker <brobecker@adacore.com>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	Marc Gauthier <marc@tensilica.com>,
	Maxim Grigoriev <maxim@mail.tensilica.com>
Subject: Re: Faster stepping amidst breakpoints
Date: Fri, 04 Feb 2011 16:33:00 -0000	[thread overview]
Message-ID: <20110204163256.GA23626@caradoc.them.org> (raw)
In-Reply-To: <4D4B31F4.7040407@tensilica.com>

On Thu, Feb 03, 2011 at 02:53:40PM -0800, Maxim Grigoriev wrote:
> 2) I think in the embedded-system world it does matter
>     when crashing / detaching GDB leaves target memory
>     and/or registers changed.

Yes - if your agent does breakpoint management using z/Z, then it has
the opportunity to clean up as long as the agent doesn't crash.  IMO
that's a reasonable expectation; if the agent crashes, your target is
probably in an unrecoverable state anyway.

> What I meant was a target agent, which can
> 
>     -- realize it's about to single-step over an inserted
>        breakpoint and then handle it properly ;
> 
>     -- watch out for shutting-down GDB communications,
>        while counting time-outs, and then return target to the
>        reliable state essentially making GDB non-intrusive.

I suggest separating these and dealing with them as separate concerns.

A related issue is watchpoints; different agents (and SoCs) handle
the current instruction after hitting a watchpoint differently.  For
instance, GDB assumes all MIPS targets have nonsteppable watchpoints
and we have one where that's clearly not true...

-- 
Daniel Jacobowitz
CodeSourcery

      parent reply	other threads:[~2011-02-04 16:33 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-22 15:06 Maxim Grigoriev
2011-01-24  8:04 ` Daniel Jacobowitz
2011-01-24 21:08   ` Maxim Grigoriev
2011-01-31  7:47   ` Joel Brobecker
2011-01-31 15:39     ` Daniel Jacobowitz
2011-02-01  3:23       ` Joel Brobecker
2011-02-01 18:44         ` Michael Snyder
2011-02-03  4:55           ` Joel Brobecker
2011-02-02 17:10         ` Daniel Jacobowitz
2011-02-03  4:46           ` Joel Brobecker
2011-02-13 15:17         ` Mark Kettenis
2011-02-14  3:27           ` Joel Brobecker
2011-02-14 10:50             ` Joel Brobecker
2011-02-01 15:12       ` Pedro Alves
2011-02-03 22:54     ` Maxim Grigoriev
2011-02-04 16:06       ` Tom Tromey
2011-02-04 19:32         ` Maxim Grigoriev
2011-02-04 16:33       ` Daniel Jacobowitz [this message]

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=20110204163256.GA23626@caradoc.them.org \
    --to=dan@codesourcery.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=marc@tensilica.com \
    --cc=maxim@mail.tensilica.com \
    --cc=maxim@tensilica.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).