summaryrefslogtreecommitdiff
path: root/gdb/gdbthread.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-10-17 18:24:46 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-10-17 18:24:46 +0000
commitcbca720518e5efd7761e29a995944ad1c8535ff4 (patch)
tree0fb01cd8ea9dc2702498c56377ea40a8af2160c3 /gdb/gdbthread.h
parent36d1deeb2f285dfb4f588c6c81dea897dc120899 (diff)
downloadgdb-cbca720518e5efd7761e29a995944ad1c8535ff4.tar.gz
gdb/
* 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/ * gdb.threads/sigstep-threads.exp: New file. * gdb.threads/sigstep-threads.c: New file.
Diffstat (limited to 'gdb/gdbthread.h')
-rw-r--r--gdb/gdbthread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index cd24eaf2fb0..e89e88d346a 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -352,4 +352,6 @@ extern struct thread_info* inferior_thread (void);
extern void update_thread_list (void);
+extern int currently_stepping (struct thread_info *tp);
+
#endif /* GDBTHREAD_H */