* target.c (normal_pid_to_str): Get rid of an ancient hack.
* remote.c (remote_pid_to_str): New function for remote target.
+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.
+
2001-04-24 Jim Blandy <jimb@redhat.com>
* c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
#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)
{
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;
{
static char buf[30];
- if (STREQ (current_target.to_shortname, "remote"))
- sprintf (buf, "thread %d", pid);
- else
- sprintf (buf, "process %d", pid);
-
+ sprintf (buf, "process %d", pid);
return buf;
}