* [RFA] Remove target_pid_or_tid_to_str.
@ 2007-12-14 17:09 Vladimir Prus
2007-12-14 18:43 ` Daniel Jacobowitz
2007-12-14 18:49 ` Mark Kettenis
0 siblings, 2 replies; 3+ messages in thread
From: Vladimir Prus @ 2007-12-14 17:09 UTC (permalink / raw)
To: gdb-patches
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RFA] Remove target_pid_or_tid_to_str.
2007-12-14 17:09 [RFA] Remove target_pid_or_tid_to_str Vladimir Prus
@ 2007-12-14 18:43 ` Daniel Jacobowitz
2007-12-14 18:49 ` Mark Kettenis
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2007-12-14 18:43 UTC (permalink / raw)
To: Vladimir Prus; +Cc: gdb-patches
On Fri, Dec 14, 2007 at 08:07:58PM +0300, Vladimir Prus wrote:
>
> 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.
OK.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA] Remove target_pid_or_tid_to_str.
2007-12-14 17:09 [RFA] Remove target_pid_or_tid_to_str Vladimir Prus
2007-12-14 18:43 ` Daniel Jacobowitz
@ 2007-12-14 18:49 ` Mark Kettenis
1 sibling, 0 replies; 3+ messages in thread
From: Mark Kettenis @ 2007-12-14 18:49 UTC (permalink / raw)
To: vladimir; +Cc: gdb-patches
> From: Vladimir Prus <vladimir@codesourcery.com>
> Date: Fri, 14 Dec 2007 20:07:58 +0300
>
> 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?
Sure.
> - 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-14 18:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-14 17:09 [RFA] Remove target_pid_or_tid_to_str Vladimir Prus
2007-12-14 18:43 ` Daniel Jacobowitz
2007-12-14 18:49 ` Mark Kettenis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox