inf-ptrace.c: use ptid_get_pid when resuming all threads
authorPedro Alves <palves@redhat.com>
Tue, 3 Mar 2015 16:28:15 +0000 (16:28 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 3 Mar 2015 16:28:15 +0000 (16:28 +0000)
In this case, we want to resume the entire process and not an
individual thread.

gdb/
2015-03-03  Pedro Alves  <palves@redhat.com>

* inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
Use ptid_get_pid to get the overall process id when resuming all
threads.

gdb/ChangeLog
gdb/inf-ptrace.c

index 31a672eafa42662a3bd5e80dae60b48c72303620..20250e41731bc0ea9e3a963a6576f2af2c2a06b6 100644 (file)
@@ -1,3 +1,9 @@
+2015-03-03  Pedro Alves  <palves@redhat.com>
+
+       * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
+       Use ptid_get_pid to get the overall process id when resuming all
+       threads.
+
 2015-03-03  Pedro Alves  <palves@redhat.com>
 
        * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
index 606bdb4289801f0136edf31a0df0a4a3e769fa55..3502a12e0b5f5262450b3f48239afef4048f7832 100644 (file)
@@ -314,13 +314,12 @@ inf_ptrace_resume (struct target_ops *ops,
                   ptid_t ptid, int step, enum gdb_signal signal)
 {
   pid_t pid;
-
   int request;
 
   if (ptid_equal (minus_one_ptid, ptid))
     /* Resume all threads.  Traditionally ptrace() only supports
        single-threaded processes, so simply resume the inferior.  */
-    pid = get_ptrace_pid (inferior_ptid);
+    pid = ptid_get_pid (inferior_ptid);
   else
     pid = get_ptrace_pid (ptid);
 
This page took 0.027933 seconds and 4 git commands to generate.