aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-04-26 22:10:42 +0000
committerMichael Snyder <msnyder@vmware.com>2001-04-26 22:10:42 +0000
commitf3fb8c8501c80aa6996a09a438f8a1b7d132c631 (patch)
tree3bf5444e060e172f9969bcf0644350fbd3953818 /gdb/remote.c
parentcc274e7c27f0d0a8a09cfe7c632ebccfe98bb27a (diff)
downloadgdb-f3fb8c8501c80aa6996a09a438f8a1b7d132c631.zip
gdb-f3fb8c8501c80aa6996a09a438f8a1b7d132c631.tar.gz
gdb-f3fb8c8501c80aa6996a09a438f8a1b7d132c631.tar.bz2
2001-04-26 Michael Snyder <msnyder@redhat.com>
* target.c (normal_pid_to_str): Get rid of an ancient hack. * remote.c (remote_pid_to_str): New function for remote target.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index fdc1564..18712c5 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -5103,6 +5103,18 @@ init_remote_threadtests (void)
#endif /* 0 */
+/* Convert a thread ID to a string. Returns the string in a static
+ buffer. */
+
+static char *
+remote_pid_to_str (int pid)
+{
+ static char buf[30];
+
+ sprintf (buf, "Thread %d", pid);
+ return buf;
+}
+
static void
init_remote_ops (void)
{
@@ -5130,6 +5142,7 @@ Specify the serial device it is connected to\n\
remote_ops.to_thread_alive = remote_thread_alive;
remote_ops.to_find_new_threads = remote_threads_info;
remote_ops.to_extra_thread_info = remote_threads_extra_info;
+ remote_ops.to_pid_to_str = remote_pid_to_str;
remote_ops.to_stop = remote_stop;
remote_ops.to_query = remote_query;
remote_ops.to_rcmd = remote_rcmd;