Factor out in-stepping-range checks.
authorPedro Alves <palves@redhat.com>
Thu, 23 May 2013 17:12:51 +0000 (17:12 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 23 May 2013 17:12:51 +0000 (17:12 +0000)
commitce4c476a0f4f38e08bce87f4144aaa7550e9a79d
tree77c408bebdfe729c8c4b6aaa1d72b0c3cd6ff671
parent6cf1d90c239bf3da9ac8b3cea667cca9c9e7e924
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.
gdb/ChangeLog
gdb/gdbthread.h
gdb/infrun.c
gdb/thread.c