This is the mail archive of the gdb@sourceware.org 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: bfinish writes to random addresses.


On Tue, Jul 25, 2006 at 08:22:20PM +0200, Mark Kettenis wrote:
> >  Daniel Jacobowitz wrote:
> >
> > > And there aren't very many hardware breakpoints, if any.
> >
> >  At least in the cases I've seen on x86, most of the time the hardware
> >  breakpoints aren't in use.  Of course, on other architectures there may
> >  be none, and on x86 they may all be used.  But my point was that if a
> >  hardware breakpoint is used if available, it would fix this at least in
> >  those cases.
> 
> If you can come up with some code that doesn't compicate matters too much
> and falls back on the software breakpoints if no hardware breakpoints are
> available, that might be a good idea.

Fortunately, we already need code to do this sort of thing - and it's
one of those issues that we (at CS) are going to be taking a look at
this year, time permitting.  This is just the reverse of trying to use
a software breakpoint when debugging ROM, and the same approach will
work.

-- 
Daniel Jacobowitz
CodeSourcery


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