From: Steven Johnson <sjohnson@neurizon.net>
To: gdb <gdb@sources.redhat.com>
Subject: Re: ARM7, remote GDB, Software Breakpoints
Date: Thu, 13 Feb 2003 00:55:00 -0000 [thread overview]
Message-ID: <3E4AED96.1000604@neurizon.net> (raw)
In-Reply-To: <20030212204915.GA575@nevyn.them.org>
>
>
>This was touched recently. The remote logic decides that 0 hardware
>breakpoint resources are available; I don't remember if the patch to
>fix it was checked in. You might want to ask Andrew if he remembers
>the problem.
>
>There's probably something in the host gdb you have to set.
>
>
>
Very recently, I posted a patch to the gdb patches list, that allows the
user to set the number of hardware breakpoints and watchpoints their
target supports by way of commands within GDB. I never received any
feedback for it, so I don't know what status it is.
I also tackeled it defferently. In my stub, when I set a breakpoint I
Favour Hardware breakpints (because I think they are better). So if gdb
tells the stub to set a breakpoint, regardless of type, then I set
hardware breakpoints until they are exhausted, and then I fall back to
software breakpoints. If GDB explicitly tells my stub to set hardware
breakpoints it sets these first. (And then falls back to software). So
basically I prioritise breakpoints and use what GDB tells the stub as a
hint, so:
1. Set GDB Requested Hardware Breakpoints first.
2. Set GDB Requested Software Breakpoints second.
3. Until all hardware breakpoints are consumed, set hardware breakpoints.
4. When all hardware breakpoints are consumed revert to software
breakpoints.
This works really well for me. The only thing the user has to be
carefull of is not setting too many breakpoints when debugging in ROM.
But if your not carefull enough to do this, your probably not capable
of debugging ROM based code anyway :)
Steven Johnson
next prev parent reply other threads:[~2003-02-13 0:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-12 6:01 Torsten Mohr
2003-02-12 17:42 ` Quality Quorum
2003-02-12 20:20 ` Torsten Mohr
2003-02-12 20:49 ` Daniel Jacobowitz
2003-02-13 0:55 ` Steven Johnson [this message]
2003-02-13 17:14 ` Andrew Cagney
2003-02-12 21:27 ` Quality Quorum
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=3E4AED96.1000604@neurizon.net \
--to=sjohnson@neurizon.net \
--cc=gdb@sources.redhat.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