This is the mail archive of the gdb-prs@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]

[Bug gdb/11371] New: Request: add support for conditional watchpoint


Hi there,
I needed a conditional watchpoint. I looked at the code and saw that although
its undocumented, there is already infrastructure for it.

I tried it out and hit a seg violation. I debugged the problem and added a very
minor fix (10 lines) and then it WORKED!. Below is the diff of file breakpoint.c
(from gdb 7.0) that fixes the problem. I would like to get it installed in the
code somehow.
Thanks,
Danny

breakpoint.c
============================================
380a381,387
> /* Return whether a watchpoint is disabled due to an interactive call.  */
> static int
> watchpoint_call_disabled (struct breakpoint *b)
> {
>   return (b->enable_state == bp_call_disabled);
> }
> 
914a922,926
>   /* dont free a watchpoint in the middle of an inferior call 
>      most probably we are evaluating its condition */
>   if(watchpoint_call_disabled(b))
>       return; 
>

-- 
           Summary: Request: add support for conditional watchpoint
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: danny dot geist at gmail dot com
                CC: gdb-prs at sourceware dot org
  GCC host triplet: i686-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=11371

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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