summaryrefslogtreecommitdiff
path: root/gdb/gdbthread.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2013-05-23 17:12:50 +0000
committerPedro Alves <palves@redhat.com>2013-05-23 17:12:50 +0000
commit34d2892f76ba085447dad2041ebace48815a45fc (patch)
treea0465adff3c518f5ab7a308d71210a92dc9acbdc /gdb/gdbthread.h
parent79aeb20ca9af9669fca91eb85950f816bbe8a4e9 (diff)
downloadgdb-34d2892f76ba085447dad2041ebace48815a45fc.tar.gz
Factor out in-stepping-range checks.
This adds a function for doing within-thread's-stepping-range checks, and converts a couple spots to use it. Following patches will add more uses. gdb/ 2013-05-23 Yao Qi <yao@codesourcery.com> Pedro Alves <palves@redhat.com> * gdbthread.h (pc_in_thread_step_range): New declaration. * thread.c (pc_in_thread_step_range): New function. * infrun.c (handle_inferior_event): Use it.
Diffstat (limited to 'gdb/gdbthread.h')
-rw-r--r--gdb/gdbthread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index 0846322725a..a9f8a941df1 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -399,6 +399,10 @@ extern struct thread_info* inferior_thread (void);
extern void update_thread_list (void);
+/* Return true if PC is in the stepping range of THREAD. */
+
+int pc_in_thread_step_range (CORE_ADDR pc, struct thread_info *thread);
+
extern struct thread_info *thread_list;
#endif /* GDBTHREAD_H */