This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ARM7, remote GDB, Software Breakpoints

On Wed, Feb 12, 2003 at 09:17:58PM +0100, Torsten Mohr wrote:
> Hi,
> thanks for your hint.
> > > 1. I could handle HW breakpoints, how can i tell GDB that it should
> > > use HW breakpoints?  Just answering requests for SW breakpoints with
> > > "ENN" doesn't seem to make GDB use HW breakpoints.
> >
> > You have to implement commands starting with 'Z' and 'z' in order to
> > support hw breakpoints.
> Yes, i do that.  According to GDB remote protocol, when i answer
> a request for "Z0..." with "ENN" (means "i can't handle software
> breakpoints"), GDB doesn't try hardware breakpoints.
> But maybe, when i have some hardware that doesn't run in RAM,
> but in Flash-ROM, i think i'd rather like to have HW breakpoints.
> Also, when i don't answer with "ENN", but with "" (empty),
> GDB doesn't try HW breakpoints.

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.

Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]