From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9460 invoked by alias); 14 Dec 2007 17:08:10 -0000 Received: (qmail 9449 invoked by uid 22791); 14 Dec 2007 17:08:10 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Dec 2007 17:08:05 +0000 Received: (qmail 24461 invoked from network); 14 Dec 2007 17:08:03 -0000 Received: from unknown (HELO 172.16.unknown.plus.ru) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 14 Dec 2007 17:08:03 -0000 From: Vladimir Prus To: gdb-patches@sources.redhat.com Subject: [RFA] Remove target_pid_or_tid_to_str. Date: Fri, 14 Dec 2007 17:09:00 -0000 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712142007.58984.vladimir@codesourcery.com> 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: 2007-12/txt/msg00187.txt.bz2 This macros has added in 1999 and used by config/pa/nm-hppah.h. The latter file was itself deleted in 2004, so now target_pid_or_tid_to_str is always the same as target_pid_to_str. OK? - Volodya * gdb/target.h (target_pid_or_tid_to_str): Remove. * gdb/infrun.c (handle_inferior_event): Use target_pid_to_str instead of target_pid_or_tid_to_str. (normal_stop): Likewise. --- gdb/infrun.c | 4 ++-- gdb/target.h | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/gdb/infrun.c b/gdb/infrun.c index e15ba24..e651425 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1343,7 +1343,7 @@ handle_inferior_event (struct execution_control_state *ecs) add_thread (ecs->ptid); ui_out_text (uiout, "[New "); - ui_out_text (uiout, target_pid_or_tid_to_str (ecs->ptid)); + ui_out_text (uiout, target_pid_to_str (ecs->ptid)); ui_out_text (uiout, "]\n"); } @@ -3144,7 +3144,7 @@ normal_stop (void) { target_terminal_ours_for_output (); printf_filtered (_("[Switching to %s]\n"), - target_pid_or_tid_to_str (inferior_ptid)); + target_pid_to_str (inferior_ptid)); previous_inferior_ptid = inferior_ptid; } diff --git a/gdb/target.h b/gdb/target.h index 10fe04b..ec5f86d 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -991,11 +991,6 @@ extern char *normal_pid_to_str (ptid_t ptid); #define target_extra_thread_info(TP) \ (current_target.to_extra_thread_info (TP)) -#ifndef target_pid_or_tid_to_str -#define target_pid_or_tid_to_str(ID) \ - target_pid_to_str (ID) -#endif - /* Attempts to find the pathname of the executable file that was run to create a specified process. -- 1.5.3.5