Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Michael Snyder <msnyder@vmware.com>
Cc: Julian Smith <jsmith@undo-software.com>,
		"gdb@sources.redhat.com" <gdb@sources.redhat.com>
Subject: Re: Some questions about gdb's remote protocol and reverse  debugging
Date: Tue, 11 Aug 2009 23:38:00 -0000	[thread overview]
Message-ID: <20090811233741.GA28274@caradoc.them.org> (raw)
In-Reply-To: <4A81FD36.2040009@vmware.com>

On Tue, Aug 11, 2009 at 04:22:30PM -0700, Michael Snyder wrote:
> >Is there any way to tell gdb to try to use hardware breakpoints (with
> >the 'Z1' and 'z1' commands) before resorting to 'M' and 'm' ? [In the
> >environment i'm working in, UndoDB, hardware breakpoints are more
> >convenient because they don't require any patching up of %pc, and
> >poking breakpoints directly into memory is not supported.]
> 
> Not as such, no.  You use a different syntax to set a hardware
> breakpoint.  The command is "hbreak" instead of "break".  You
> should at least be able to try stuff out with that.

Or, just make your stub treat Z0 as a hardware breakpoint?

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2009-08-11 23:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-11 23:00 Julian Smith
2009-08-11 23:24 ` Michael Snyder
2009-08-11 23:38   ` Daniel Jacobowitz [this message]
2009-08-21 10:57   ` Julian Smith
2009-08-21 15:43     ` Jakob Engblom

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=20090811233741.GA28274@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=jsmith@undo-software.com \
    --cc=msnyder@vmware.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