From 3f031adf9f8db098550eedd752d71edb96dc2849 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Tue, 30 Mar 1993 19:10:31 +0000 Subject: [PATCH] (print_it_normal): return 0 after hitting watchpoint --- gdb/ChangeLog | 2 ++ gdb/breakpoint.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0fd9d6cb36..166fdab6c9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ Tue Mar 30 08:06:24 1993 Jim Kingdon (kingdon@cygnus.com) + * breakpoint.c (print_it_normal): Return 0 after hitting watchpoint. + * breakpoint.h (bpstat): New field print_it. breakpoint.c (bpstat_print): Use it. (print_it_normal): New function (from old bpstat_print code). diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 1f9726b703..070ea85736 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -736,7 +736,7 @@ print_it_normal (bs) printf_filtered ("\n"); value_free (bs->old_val); bs->old_val = NULL; - return 1; + return 0; } /* We can't deal with it. Maybe another member of the bpstat chain can. */ return -1; @@ -745,7 +745,7 @@ print_it_normal (bs) /* Print a message indicating what happened. Returns nonzero to say that only the source line should be printed after this (zero return means print the frame as well as the source line). */ - +/* Currently we always return zero. */ int bpstat_print (bs) bpstat bs; -- 2.34.1