summaryrefslogtreecommitdiff
path: root/gdb/gdbserver/target.c
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2011-09-01 03:14:10 +0000
committerJie Zhang <jie.zhang@analog.com>2011-09-01 03:14:10 +0000
commit943ca1dd02e2e88cb07e4a342d2b734694601714 (patch)
tree95977d303740a4baf8ae74ce7fca0374bf7d9a93 /gdb/gdbserver/target.c
parent0ddc55ad78b6bcaf3eb50b7fd71a6e0a52cb9932 (diff)
downloadbinutils-gdb-943ca1dd02e2e88cb07e4a342d2b734694601714.tar.gz
* server.c (step_thread): Remove definition.
(process_serial_event): Don't handle Hs. * server.h (step_thread): Remove declaration. * target.c (set_desired_inferior): Remove use of step_thread.
Diffstat (limited to 'gdb/gdbserver/target.c')
-rw-r--r--gdb/gdbserver/target.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/gdb/gdbserver/target.c b/gdb/gdbserver/target.c
index 4780da428fe..83eb27f4357 100644
--- a/gdb/gdbserver/target.c
+++ b/gdb/gdbserver/target.c
@@ -31,21 +31,7 @@ set_desired_inferior (int use_general)
if (use_general == 1)
found = find_thread_ptid (general_thread);
else
- {
- found = NULL;
-
- /* If we are continuing any (all) thread(s), use step_thread
- to decide which thread to step and/or send the specified
- signal to. */
- if ((!ptid_equal (step_thread, null_ptid)
- && !ptid_equal (step_thread, minus_one_ptid))
- && (ptid_equal (cont_thread, null_ptid)
- || ptid_equal (cont_thread, minus_one_ptid)))
- found = find_thread_ptid (step_thread);
-
- if (found == NULL)
- found = find_thread_ptid (cont_thread);
- }
+ found = find_thread_ptid (cont_thread);
if (found == NULL)
current_inferior = (struct thread_info *) all_threads.head;