* gnu-nat.c: Include <ctype.h>.
authorMark Kettenis <kettenis@gnu.org>
Thu, 24 May 2001 20:05:07 +0000 (20:05 +0000)
committerMark Kettenis <kettenis@gnu.org>
Thu, 24 May 2001 20:05:07 +0000 (20:05 +0000)
(gnu_pid_to_exec_file): Add PID parameter.
(set_sig_thread_cmd): Use PIDGET on return value from
thread_id_to_pid.
(proc_string): Use MERGEPID to construct argument to
pid_to_thread_id.

gdb/ChangeLog
gdb/gnu-nat.c

index 087af298b9c05bc77502f518ee4f4ad5d6bd6448..e4dc5a271d01457132648235f35564de0287d5b6 100644 (file)
@@ -1,3 +1,12 @@
+2001-05-24  Mark Kettenis  <kettenis@gnu.org>
+
+       * gnu-nat.c: Include <ctype.h>.
+       (gnu_pid_to_exec_file): Add PID parameter.
+       (set_sig_thread_cmd): Use PIDGET on return value from
+       thread_id_to_pid.
+       (proc_string): Use MERGEPID to construct argument to
+       pid_to_thread_id.
+
 2001-05-22  Kevin Buettner  <kevinb@redhat.com>
 
        * breakpoint.c (breakpoint_address_is_meaningful): New function.
index 0939931753f57f5fbb2faca520a4506c58b55c75..0e584e9fc5d37dca22e7ada9d5f85814cea37c3c 100644 (file)
@@ -24,6 +24,7 @@
    Boston, MA 02111-1307, USA.
  */
 
+#include <ctype.h>
 #include <errno.h>
 #include <limits.h>
 #include <setjmp.h>
@@ -2222,7 +2223,7 @@ gnu_stop (void)
 }
 
 static char *
-gnu_pid_to_exec_file (void)
+gnu_pid_to_exec_file (int pid)
 {
   error ("to_pid_to_exec_file target function not implemented");
   return NULL;
@@ -2476,7 +2477,7 @@ proc_string (struct proc *proc)
     sprintf (tid_str, "process %d", proc->inf->pid);
   else
     sprintf (tid_str, "thread %d.%d",
-            proc->inf->pid, pid_to_thread_id (proc->tid));
+            proc->inf->pid, pid_to_thread_id (MERGEPID (proc->tid, 0)));
   return tid_str;
 }
 
@@ -2836,7 +2837,7 @@ set_sig_thread_cmd (char *args, int from_tty)
     inf->signal_thread = 0;
   else
     {
-      int tid = thread_id_to_pid (atoi (args));
+      int tid = PIDGET (thread_id_to_pid (atoi (args)));
       if (tid < 0)
        error ("Thread ID %s not known.  Use the \"info threads\" command to\n"
               "see the IDs of currently known threads.", args);
This page took 0.031615 seconds and 4 git commands to generate.