This is the mail archive of the gdb-patches@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: [patch 1/2] Convert hardware watchpoints to use breakpoint_ops


Just for the record, I've started looking at both patches, and already
spent a good hour on them. But I think that I should give myself some
time to to let every piece sink in, before I make an official review.

I urge another one of us to look at this change, because it's not
completely obvious. In particular, I think it was my suggestion
that prompted the move to using breakpoint_ops for watchpoints.
But it's not obvious that there is a gain.  I think the gain shows up
in the second patch, where we avoid having:
  
  1. To define new kinds for range and mask watchpoints

  2. To program dispatching manually, Eg:

     if (bp->print_one)
       bp->print_one (...)
     else if (bp->type == hw_watchpoint)
       print_one_normal_watchpoint (...)
     else if (bp->type == range_watchpoint)
       print_one_range_watchpoint (...)
     else if (bp->type == mask_watchpoint)
       [...]


-- 
Joel


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