Re: [PATCH 0/2] Support the new PPC476 processor

Daniel Jacobowitz
2009-12-31T16:28:08Z

On Thu, Dec 31, 2009 at 06:06:48AM +0200, Eli Zaretskii wrote:
> > Date: Wed, 30 Dec 2009 17:15:35 -0500
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: gdb-patches@sourceware.org, luisgpm@linux.vnet.ibm.com,
> > tyrlik@us.ibm.com
> >
> > > Thanks for the explanations. I think we should emulate this on
> > > architectures that don't have this in hardware (it doesn't sound
> > > hard).
> >
> > How do you mean? It seems basically impossible to me.
>
> How is it impossible to put several breakpoints covering a range of
> addresses?

I think ranged breakpoints are typically used with a large range of
addresses. For instance, I can imagine using them to cover an entire
shared library - say 1MB of code. Also we don't know which part of
the range is code and which is data, so using software breakpoints
indiscriminately could break the program.

--
Daniel Jacobowitz
CodeSourcery