From patchwork Wed Jul 3 02:09:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 33519 Received: (qmail 9196 invoked by alias); 3 Jul 2019 02:09:36 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 9136 invoked by uid 89); 3 Jul 2019 02:09:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_SOFTFAIL autolearn=ham version=3.3.1 spammy=H*MI:polymtl, HContent-Transfer-Encoding:8bit X-HELO: barracuda.ebox.ca Received: from barracuda.ebox.ca (HELO barracuda.ebox.ca) (96.127.255.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 03 Jul 2019 02:09:30 +0000 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id MPxIiOq9PzSSGctH (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 02 Jul 2019 22:09:27 -0400 (EDT) Received: from simark.lan (unknown [192.222.164.54]) by smtp.ebox.ca (Postfix) with ESMTP id DDE2F441D64; Tue, 2 Jul 2019 22:09:27 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [pushed] Remove return value from remove_breakpoints_inf Date: Tue, 2 Jul 2019 22:09:27 -0400 Message-Id: <20190703020927.28406-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 X-IsSubscribed: yes ... 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 35f1baefb997..d50fe89f1150 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 8422db8b571f..b49be762a2fe 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 906803132822..75f19785cb1d 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.