From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19368 invoked by alias); 5 Feb 2009 23:32:14 -0000 Received: (qmail 19356 invoked by uid 22791); 5 Feb 2009 23:32:13 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BARRACUDA_BRBL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Feb 2009 23:32:08 +0000 Received: by ug-out-1314.google.com with SMTP id j40so182747ugd.39 for ; Thu, 05 Feb 2009 15:32:05 -0800 (PST) Received: by 10.67.19.13 with SMTP id w13mr5203014ugi.86.1233876725030; Thu, 05 Feb 2009 15:32:05 -0800 (PST) Received: from pedro-laptop-dell (bl7-247-209.dsl.telepac.pt [85.240.247.209]) by mx.google.com with ESMTPS id 27sm9473889ugp.33.2009.02.05.15.32.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 05 Feb 2009 15:32:04 -0800 (PST) Received: by pedro-laptop-dell (Postfix, from userid 1000) id 10906EAEE0; Thu, 5 Feb 2009 23:32:14 +0000 (WET) To: gdb-patches@sourceware.org Subject: Delete target_stopped_data_address_p. Message-Id: <20090205233214.10906EAEE0@pedro-laptop-dell> Date: Thu, 05 Feb 2009 23:32:00 -0000 From: Pedro Alves X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00141.txt.bz2 This is never called anywhere. In fact, AFAICS from digging up the archives from when it was introduced, it ended up not being needed, and it fact, no calls to it had been introduced. Checked in. 2009-02-05 Pedro Alves * target.h (target_stopped_data_address_p): Delete declaration, and don't define as macro. * target.c (target_stopped_data_address_p): Delete. --- gdb/target.c | 15 --------------- gdb/target.h | 5 ----- 2 files changed, 20 deletions(-) Index: src/gdb/target.c =================================================================== --- src.orig/gdb/target.c 2009-02-05 22:53:26.000000000 +0000 +++ src/gdb/target.c 2009-02-05 22:54:30.000000000 +0000 @@ -1353,21 +1353,6 @@ target_flash_done (void) tcomplain (); } -#ifndef target_stopped_data_address_p -int -target_stopped_data_address_p (struct target_ops *target) -{ - if (target->to_stopped_data_address - == (int (*) (struct target_ops *, CORE_ADDR *)) return_zero) - return 0; - if (target->to_stopped_data_address == debug_to_stopped_data_address - && (debug_target.to_stopped_data_address - == (int (*) (struct target_ops *, CORE_ADDR *)) return_zero)) - return 0; - return 1; -} -#endif - static void show_trust_readonly (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) Index: src/gdb/target.h =================================================================== --- src.orig/gdb/target.h 2009-02-05 22:53:26.000000000 +0000 +++ src/gdb/target.h 2009-02-05 22:59:10.000000000 +0000 @@ -1129,14 +1129,9 @@ extern char *normal_pid_to_str (ptid_t p (*current_target.to_remove_hw_breakpoint) (bp_tgt) #endif -extern int target_stopped_data_address_p (struct target_ops *); - #ifndef target_stopped_data_address #define target_stopped_data_address(target, x) \ (*target.to_stopped_data_address) (target, x) -#else -/* Horrible hack to get around existing macros :-(. */ -#define target_stopped_data_address_p(CURRENT_TARGET) (1) #endif #define target_watchpoint_addr_within_range(target, addr, start, length) \