aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-11-02 01:37:32 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-11-02 01:37:32 +0000
commita289b8f64e80d14000a8c35d51fe9d78d33bc83d (patch)
tree0b4abe18b22ecbdd38e24a59ccbb107b8abe58bb /gdb/linux-nat.c
parent6d0cd39eb22c4ff76d1c360fdbef4b7506f95327 (diff)
downloadgdb-a289b8f64e80d14000a8c35d51fe9d78d33bc83d.zip
gdb-a289b8f64e80d14000a8c35d51fe9d78d33bc83d.tar.gz
gdb-a289b8f64e80d14000a8c35d51fe9d78d33bc83d.tar.bz2
gdb/
Revert: 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> Pedro Alves <pedro@codesourcery.com> * gdbthread.h (currently_stepping): New declaration. * infrun.c (currently_stepping): Remove the forward declaration. (currently_stepping): Make it global. * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New variables tp and step, initialized them. Pass STEP to to_resume. Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP. * remote.c (currently_stepping_callback): New. (remote_vcont_resume) <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>: New variable tp. Call currently_stepping_callback and step such thread. gdb/testsuite/ Revert: 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.threads/sigstep-threads.exp: New file. * gdb.threads/sigstep-threads.c: New file.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index f8de481..0e18034 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -1820,26 +1820,20 @@ resume_callback (struct lwp_info *lp, void *data)
}
else if (lp->stopped && lp->status == 0)
{
- struct thread_info *tp = find_thread_ptid (lp->ptid);
- /* lp->step may already contain a stale value. */
- int step = tp ? currently_stepping (tp) : 0;
-
if (debug_linux_nat)
fprintf_unfiltered (gdb_stdlog,
- "RC: %s %s, 0, 0 (resuming sibling)\n",
- step ? "PTRACE_SINGLESTEP" : "PTRACE_CONT",
+ "RC: PTRACE_CONT %s, 0, 0 (resuming sibling)\n",
target_pid_to_str (lp->ptid));
linux_ops->to_resume (linux_ops,
pid_to_ptid (GET_LWP (lp->ptid)),
- step, TARGET_SIGNAL_0);
+ 0, TARGET_SIGNAL_0);
if (debug_linux_nat)
fprintf_unfiltered (gdb_stdlog,
- "RC: %s %s, 0, 0 (resume sibling)\n",
- step ? "PTRACE_SINGLESTEP" : "PTRACE_CONT",
+ "RC: PTRACE_CONT %s, 0, 0 (resume sibling)\n",
target_pid_to_str (lp->ptid));
lp->stopped = 0;
- lp->step = step;
+ lp->step = 0;
memset (&lp->siginfo, 0, sizeof (lp->siginfo));
lp->stopped_by_watchpoint = 0;
}