Re: [RFA 2/3] Demote to sw watchpoint only in update_watchpoint

Thiago Jung Bauermann
2011-05-04T00:03:52Z

On Tue, 2011-05-03 at 23:29 +0300, Eli Zaretskii wrote:
> > From: Pedro Alves <pedro@codesourcery.com>
> > Date: Tue, 3 May 2011 19:12:42 +0100
> > Cc: bauerman@br.ibm.com,
> > uweigand@de.ibm.com
> >
> > I'm proposing getting rid of target_can_use_hardware_watchpoint
> > as being part of the core accounting infrastructure.
>
> I'm fine with heading that way. It will certainly be cleaner than the
> current mess, which needs a face-lift every few months.

For this scheme to work, GDB will have to be changed to use
always-inserted mode exclusively, right? Or at least insert all
breakpoints and watchpoints when probing whether a new
breakpoint/watchpoint can be created.
--
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center