From 042e866ed287388ab20597d3868480a2228daaf8 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 13 Jan 2011 23:55:34 +0000 Subject: [PATCH] delete hpux_pid_to_str (unused) 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. --- gdb/ChangeLog | 4 ++++ gdb/hpux-thread.c | 13 ------------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3490da170a..292ce0035d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-01-13 Joel Brobecker + + * hpux-thread.c (hpux_pid_to_str): Delete. + 2011-01-13 Joel Brobecker * ada-valprint.c (ada_emit_char): Remove strange code. diff --git a/gdb/hpux-thread.c b/gdb/hpux-thread.c index 478b3db400..a747ab596d 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); } -/* 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; -} - static void init_hpux_thread_ops (void) {