diff options
author | Pedro Alves <palves@redhat.com> | 2015-03-03 16:28:15 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-03-03 16:28:15 +0000 |
commit | c1593e4fa9901c65a32e85c3c5d3ec41598be887 (patch) | |
tree | 1d614580d2e4e24ec7ce129666787545ba863687 /gdb/inf-ptrace.c | |
parent | a64c9f7b850554956083678dd1ef330dd9a7cf22 (diff) | |
download | gdb-c1593e4fa9901c65a32e85c3c5d3ec41598be887.zip gdb-c1593e4fa9901c65a32e85c3c5d3ec41598be887.tar.gz gdb-c1593e4fa9901c65a32e85c3c5d3ec41598be887.tar.bz2 |
inf-ptrace.c: use ptid_get_pid when resuming all threads
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.
Diffstat (limited to 'gdb/inf-ptrace.c')
-rw-r--r-- | gdb/inf-ptrace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c index 606bdb4..3502a12 100644 --- a/gdb/inf-ptrace.c +++ b/gdb/inf-ptrace.c @@ -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); |