[RFA] Make ppc-linux-nat insert/remove breakpoint and watchpoint functions return -1.

Thiago Jung Bauermann bauerman@br.ibm.com
Wed Jul 6 19:38:00 GMT 2011


On Wed, 2011-07-06 at 09:35 -0700, Joel Brobecker wrote:
> > Looking at target.h:
> > 
> > | /* Insert a breakpoint at address BP_TGT->placed_address in the target
> > |    machine.  Result is 0 for success, or an errno value.  */
> > | 
> > | extern int target_insert_breakpoint (struct gdbarch *gdbarch,
> > |                                      struct bp_target_info *bp_tgt);
> > 
> 
> Sorry, scrap that part - I was looking at the wrong method
> (I should have been looking at the `hw' one....).
> 
> > That being said, it's ultra important IMO in that case that we add the
> > documentation wherever missing, because these are used by all ports.
> 
> Makes that comment all the more relevant :).
> 
> So I guess we'll have to infer the expected behavior from the core
> code that calls it. I am hoping that it's the same as with the non
> hw versions! :)

My ppc476 patches touched a lot of this code and I made everything that
uses the breakpoint_ops methods follow that convention. Things were
indeed confusing and even contradictory before my patches, and I thought
I fixed all that. It seems I missed some parts then. I'll have a look
and post fixes. This patch can wait for now. Thanks for bringing this
up.
-- 
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center



More information about the Gdb-patches mailing list