aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-01-13 23:55:34 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-01-13 23:55:34 +0000
commit042e866ed287388ab20597d3868480a2228daaf8 (patch)
treedf6df0937fb26cc2ab901d7a1f6f9913eacab546 /gdb
parent4ffa5a33921b942a16f4c2d14177d2e5d9d075d3 (diff)
downloadgdb-042e866ed287388ab20597d3868480a2228daaf8.zip
gdb-042e866ed287388ab20597d3868480a2228daaf8.tar.gz
gdb-042e866ed287388ab20597d3868480a2228daaf8.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/hpux-thread.c13
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);
}
-/* 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)
{