From patchwork Wed Jun 17 19:32:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Machado X-Patchwork-Id: 7224 Received: (qmail 116878 invoked by alias); 17 Jun 2015 19:32:09 -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 116869 invoked by uid 89); 17 Jun 2015 19:32:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 17 Jun 2015 19:32:07 +0000 Received: from svr-orw-fem-05.mgc.mentorg.com ([147.34.97.43]) by relay1.mentorg.com with esmtp id 1Z5J48-0000yb-B2 from Luis_Gustavo@mentor.com for gdb-patches@sourceware.org; Wed, 17 Jun 2015 12:32:04 -0700 Received: from opsys.alm.mentorg.com (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.3.224.2; Wed, 17 Jun 2015 12:32:03 -0700 From: Luis Machado To: Subject: [PATCH] Remove unused function make_breakpoint_permanent. Date: Wed, 17 Jun 2015 16:32:02 -0300 Message-ID: <1434569522-8642-1-git-send-email-lgustavo@codesourcery.com> MIME-Version: 1.0 X-IsSubscribed: yes make_breakpoint_permanent is no longer used anywhere and can be safely removed. Pedro approved the patch on the permanent breakpoint thread. gdb/ChangeLog: 2015-06-17 Luis Machado * breakpoint.c (make_breakpoint_permanent): Remove unused function. * breakpoint.h (make_breakpoint_permanent): Remove declaration. --- gdb/ChangeLog | 6 ++++++ gdb/breakpoint.c | 20 -------------------- gdb/breakpoint.h | 2 -- 3 files changed, 6 insertions(+), 22 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e1d9349..0e53882 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2015-06-17 Luis Machado + + * breakpoint.c (make_breakpoint_permanent): Remove unused + function. + * breakpoint.h (make_breakpoint_permanent): Remove declaration. + 2015-06-17 Patrick Palka PR gdb/16999 diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 0a960f8..7f9e161 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -7431,26 +7431,6 @@ set_raw_breakpoint (struct gdbarch *gdbarch, return b; } - -/* Note that the breakpoint object B describes a permanent breakpoint - instruction, hard-wired into the inferior's code. */ -void -make_breakpoint_permanent (struct breakpoint *b) -{ - struct bp_location *bl; - - /* By definition, permanent breakpoints are already present in the - code. Mark all locations as inserted. For now, - make_breakpoint_permanent is called in just one place, so it's - hard to say if it's reasonable to have permanent breakpoint with - multiple locations or not, but it's easy to implement. */ - for (bl = b->loc; bl; bl = bl->next) - { - bl->permanent = 1; - bl->inserted = 1; - } -} - /* Call this routine when stepping and nexting to enable a breakpoint if we do a longjmp() or 'throw' in TP. FRAME is the frame which initiated the operation. */ diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 562a6b6..94d9385 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -1442,8 +1442,6 @@ extern void breakpoint_set_task (struct breakpoint *b, int task); /* Clear the "inserted" flag in all breakpoints. */ extern void mark_breakpoints_out (void); -extern void make_breakpoint_permanent (struct breakpoint *); - extern struct breakpoint *create_jit_event_breakpoint (struct gdbarch *, CORE_ADDR);