From patchwork Wed Apr 23 18:05:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 654 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx21.g.dreamhost.com (peon2454.g.dreamhost.com [208.113.200.127]) by wilcox.dreamhost.com (Postfix) with ESMTP id 11AFE360AFE for ; Wed, 23 Apr 2014 11:05:41 -0700 (PDT) Received: by homiemail-mx21.g.dreamhost.com (Postfix, from userid 14314964) id 7C09B1486879; Wed, 23 Apr 2014 11:05:40 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx21.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx21.g.dreamhost.com (Postfix) with ESMTPS id 2B2A5148CF1F for ; Wed, 23 Apr 2014 11:05:40 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=QmWoo+E1mix4xtQ6iD5+TRxTBWopzn1kIBJwnqutBc6aa3JE7ikno R315pAOOHgGk+T3w6c3o4P+GBzf26mb3ws3SLLssNjCyjWkZjeEc9sidMMXAOE7K zhVjrjVuw5PFF0fUHHQGj4vqkKK2V3wPuo3SpytsfdthP2bgnbP94s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=P6CIyadk6PdRfY/rToLQol6lmX4=; b=txa6B8DTUCPktR/h/RpBMX57bYL0 NZF2TBWA170C0jHeO4Wgkg5t97/TmkpfMFYhMHkDe+BBUnnPb0BUwVJHrpjZSWEF Bk4eimOmep3sT2XD0n1g8ItnU0eo27YJzXzl9aC1Llq8+ENbrtGnkNHAaJpaC+6j +NaqSfQiqVqd6pA= Received: (qmail 23269 invoked by alias); 23 Apr 2014 18:05:38 -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 23260 invoked by uid 89); 23 Apr 2014 18:05:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 Apr 2014 18:05:37 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s3NI5aHT007293 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 23 Apr 2014 14:05:36 -0400 Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s3NI5YAH005317 for ; Wed, 23 Apr 2014 14:05:35 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [pushed] [gdbserver] mem-break.c:find_gdb_breakpoint_at: Make static. Date: Wed, 23 Apr 2014 19:05:34 +0100 Message-Id: <1398276334-5139-1-git-send-email-palves@redhat.com> X-DH-Original-To: gdb@patchwork.siddhesh.in Nothing calls this outside mem-break.c. gdb/gdbserver/ 2014-04-23 Pedro Alves * mem-break.c (find_gdb_breakpoint_at): Make static. * mem-break.h (find_gdb_breakpoint_at): Delete declaration. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/mem-break.c | 5 ++++- gdb/gdbserver/mem-break.h | 5 ----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index c419e43..f6ece1c 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 2014-04-23 Pedro Alves + * mem-break.c (find_gdb_breakpoint_at): Make static. + * mem-break.h (find_gdb_breakpoint_at): Delete declaration. + +2014-04-23 Pedro Alves + * i386-low.c: Don't include break-common.h here. (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change prototype to take target_hw_bp_type as argument instead of a Z diff --git a/gdb/gdbserver/mem-break.c b/gdb/gdbserver/mem-break.c index 5df950d..680e97f 100644 --- a/gdb/gdbserver/mem-break.c +++ b/gdb/gdbserver/mem-break.c @@ -676,7 +676,10 @@ delete_breakpoint (struct breakpoint *todel) return delete_breakpoint_1 (proc, todel); } -struct breakpoint * +/* Locate a breakpoint placed at address WHERE and return a pointer + to its structure. */ + +static struct breakpoint * find_gdb_breakpoint_at (CORE_ADDR where) { struct process_info *proc = current_process (); diff --git a/gdb/gdbserver/mem-break.h b/gdb/gdbserver/mem-break.h index 4346881..74369a7 100644 --- a/gdb/gdbserver/mem-break.h +++ b/gdb/gdbserver/mem-break.h @@ -25,11 +25,6 @@ struct breakpoint; struct fast_tracepoint_jump; -/* Locate a breakpoint placed at address WHERE and return a pointer - to its structure. */ - -struct breakpoint *find_gdb_breakpoint_at (CORE_ADDR where); - /* Create a new GDB breakpoint at WHERE. Returns -1 if breakpoints are not supported on this target, 0 otherwise. */