Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [commit/hpux] delete hpux_pid_to_str (unused)
@ 2011-01-14  0:34 Joel Brobecker
  2011-01-14 12:30 ` Mark Kettenis
  0 siblings, 1 reply; 6+ messages in thread
From: Joel Brobecker @ 2011-01-14  0:34 UTC (permalink / raw)
  To: gdb-patches; +Cc: Joel Brobecker

This is something that Tom noticed, and told me about by email.

This function is unused, and the default formatting routine does
just fine, I think.   On pa-hpux:

        [New process 12565, lwp 2513]
        [New process 12565, lwp 2514]

So this patch deletes it.

gdb/ChangeLog:

        * hpux-thread.c (hpux_pid_to_str): Delete.

Checked in.

---
 gdb/ChangeLog     |    4 ++++
 gdb/hpux-thread.c |   13 -------------
 2 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3490da1..292ce00 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
 
+	* hpux-thread.c (hpux_pid_to_str): Delete.
+
+2011-01-13  Joel Brobecker  <brobecker@adacore.com>
+
 	* ada-valprint.c (ada_emit_char): Remove strange code.
 	Check that c is <= UCHAR_MAX before passing it to isascii.
 	(char_at): Do not assume that TYPE_LEN is either 1 or 2.
diff --git a/gdb/hpux-thread.c b/gdb/hpux-thread.c
index 478b3db..a747ab5 100644
--- a/gdb/hpux-thread.c
+++ b/gdb/hpux-thread.c
@@ -522,19 +522,6 @@ hpux_thread_stop (ptid_t ptid)
   deprecated_child_ops.to_stop (ptid);
 }
 \f
-/* Convert a pid to printable form.  */
-
-char *
-hpux_pid_to_str (ptid_t ptid)
-{
-  static char buf[100];
-  int pid = PIDGET (ptid);
-
-  sprintf (buf, "Thread %ld", ptid_get_tid (ptid));
-
-  return buf;
-}
-\f
 static void
 init_hpux_thread_ops (void)
 {
-- 
1.7.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-01-14 13:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-14  0:34 [commit/hpux] delete hpux_pid_to_str (unused) Joel Brobecker
2011-01-14 12:30 ` Mark Kettenis
2011-01-14 12:38   ` Pedro Alves
2011-01-14 12:47     ` Mark Kettenis
2011-01-14 13:49       ` Pedro Alves
2011-01-14 13:41     ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox