diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-11-02 01:37:32 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-11-02 01:37:32 +0000 |
commit | a289b8f64e80d14000a8c35d51fe9d78d33bc83d (patch) | |
tree | 0b4abe18b22ecbdd38e24a59ccbb107b8abe58bb /gdb/remote.c | |
parent | 6d0cd39eb22c4ff76d1c360fdbef4b7506f95327 (diff) | |
download | binutils-gdb-a289b8f64e80d14000a8c35d51fe9d78d33bc83d.tar.gz |
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/remote.c')
-rw-r--r-- | gdb/remote.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 68e5678bf79..a4860bc21e1 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -4416,12 +4416,6 @@ append_resumption (char *p, char *endp, return p; } -static int -currently_stepping_callback (struct thread_info *tp, void *data) -{ - return currently_stepping (tp); -} - /* Resume the remote inferior by using a "vCont" packet. The thread to be resumed is PTID; STEP and SIGGNAL indicate whether the resumed thread should be single-stepped and/or signalled. If PTID @@ -4464,8 +4458,6 @@ remote_vcont_resume (ptid_t ptid, int step, enum target_signal siggnal) } else if (ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)) { - struct thread_info *tp; - /* Resume all threads (of all processes, or of a single process), with preference for INFERIOR_PTID. This assumes inferior_ptid belongs to the set of all threads we are about @@ -4476,12 +4468,6 @@ remote_vcont_resume (ptid_t ptid, int step, enum target_signal siggnal) p = append_resumption (p, endp, inferior_ptid, step, siggnal); } - tp = iterate_over_threads (currently_stepping_callback, NULL); - if (tp && !ptid_equal (tp->ptid, inferior_ptid)) - { - p = append_resumption (p, endp, tp->ptid, 1, TARGET_SIGNAL_0); - } - /* And continue others without a signal. */ p = append_resumption (p, endp, ptid, /*step=*/ 0, TARGET_SIGNAL_0); } |