diff options
author | Pedro Alves <palves@redhat.com> | 2013-05-23 17:12:51 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-05-23 17:12:51 +0000 |
commit | ce4c476a0f4f38e08bce87f4144aaa7550e9a79d (patch) | |
tree | 77c408bebdfe729c8c4b6aaa1d72b0c3cd6ff671 /gdb/gdbthread.h | |
parent | 6cf1d90c239bf3da9ac8b3cea667cca9c9e7e924 (diff) | |
download | gdb-ce4c476a0f4f38e08bce87f4144aaa7550e9a79d.zip gdb-ce4c476a0f4f38e08bce87f4144aaa7550e9a79d.tar.gz gdb-ce4c476a0f4f38e08bce87f4144aaa7550e9a79d.tar.bz2 |
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 0846322..a9f8a94 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 */ |