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.
This commit is contained in:
Joel Brobecker 2011-01-13 23:55:34 +00:00
parent 4ffa5a3392
commit 042e866ed2
2 changed files with 4 additions and 13 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -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)
{