public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/11371] New: Request: add support for conditional watchpoint
@ 2010-03-11  7:43 danny dot geist at gmail dot com
  2010-06-01 14:51 ` [Bug gdb/11371] " cmoller at redhat dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: danny dot geist at gmail dot com @ 2010-03-11  7:43 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-08-17 21:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-11  7:43 [Bug gdb/11371] New: Request: add support for conditional watchpoint danny dot geist at gmail dot com
2010-06-01 14:51 ` [Bug gdb/11371] " cmoller at redhat dot com
2010-06-01 14:59 ` cmoller at redhat dot com
2010-06-02  8:43 ` danny dot geist at gmail dot com
2010-06-05 14:14 ` jan dot kratochvil at redhat dot com
2010-08-14  2:29 ` [Bug breakpoints/11371] " pedro at codesourcery dot com
2010-08-14  3:22 ` pedro at codesourcery dot com
2010-08-17 21:18 ` pedro at codesourcery dot com
2010-08-17 21:18 ` pedro at codesourcery dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).