From f3869b1a41a809f208b964ee00cea74bd905b75f Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 2 Jul 2019 22:03:09 -0400 Subject: [PATCH] Remove return value from remove_breakpoints_inf ... since nobody uses it. gdb/ChangeLog: * breakpoint.h (remove_breakpoints_inf): Change return type to void, move function documentation here. * breakpoint.c (remove_breakpoints_inf): Change return type to void, move function documentation to header. --- gdb/ChangeLog | 7 +++++++ gdb/breakpoint.c | 7 +++---- gdb/breakpoint.h | 4 +++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 35f1baefb99..d50fe89f115 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2019-07-02 Simon Marchi + + * breakpoint.h (remove_breakpoints_inf): Change return type to + void, move function documentation here. + * breakpoint.c (remove_breakpoints_inf): Change return type to + void, move function documentation to header. + 2019-07-02 Pedro Alves * NEWS (Completion improvements): Mention "info threads". diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 8422db8b571..b49be762a2f 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -3049,9 +3049,9 @@ Thread-specific breakpoint %d deleted - thread %s no longer in the thread list.\ } } -/* Remove breakpoints of inferior INF. */ +/* See breakpoint.h. */ -int +void remove_breakpoints_inf (inferior *inf) { struct bp_location *bl, **blp_tmp; @@ -3066,10 +3066,9 @@ remove_breakpoints_inf (inferior *inf) { val = remove_breakpoint (bl); if (val != 0) - return val; + return; } } - return 0; } static int internal_breakpoint_number = -1; diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 90680313282..75f19785cb1 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -1390,7 +1390,9 @@ extern void insert_breakpoints (void); extern int remove_breakpoints (void); -extern int remove_breakpoints_inf (inferior *inf); +/* Remove breakpoints of inferior INF. */ + +extern void remove_breakpoints_inf (inferior *inf); /* This function can be used to update the breakpoint package's state after an exec() system call has been executed. -- 2.30.2