Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Jon Beniston" <jbeniston@compxs.com>
To: "'Heiko Panther'" <heiko.panther@web.de>, <gdb@sources.redhat.com>
Subject: RE: gdb-5.3: how to avoid soft breakpoints?
Date: Fri, 06 Feb 2004 15:38:00 -0000	[thread overview]
Message-ID: <001501c3ecc6$f7278d30$06bda8c0@Kindrogan> (raw)
In-Reply-To: <4023B234.6050201@web.de>


> 
> I have an embedded target running gdb stub on an openrisc processor 
> (www.opencores.org). The application is running from ROM, so I cannot 
> set soft breakpoints. I worked the gdb stub so it will ERR Z0 
> packets, 
> and use Z[123] packets. This works perfectly well with hbreak. break 
> will attempt to set a soft breakpoint and fail. So do "next" and 
> "finish" when they try to set a breakpoint.
> 
> Is there any way around that? Can I have gdb totally avoid 
> soft breakpoints?

I recently posted a patch that tries to use h/w breakpoints when s/w
breakpoints fail. It worked for me in pretty much the same situation as
you seem to be in, but I didn't get any feedback on it. See:

http://sources.redhat.com/ml/gdb-patches/2004-01/msg00343.html

Cheers,
JonB



      reply	other threads:[~2004-02-06 15:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-06 15:26 Heiko Panther
2004-02-06 15:38 ` Jon Beniston [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='001501c3ecc6$f7278d30$06bda8c0@Kindrogan' \
    --to=jbeniston@compxs.com \
    --cc=gdb@sources.redhat.com \
    --cc=heiko.panther@web.de \
    /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