diff options
author | Pedro Alves <palves@redhat.com> | 2013-05-23 17:12:50 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-05-23 17:12:50 +0000 |
commit | 34d2892f76ba085447dad2041ebace48815a45fc (patch) | |
tree | a0465adff3c518f5ab7a308d71210a92dc9acbdc /gdb/gdbthread.h | |
parent | 79aeb20ca9af9669fca91eb85950f816bbe8a4e9 (diff) | |
download | gdb-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.h | 4 |
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 */ |