diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2016-09-16 19:25:55 +0200 |
---|---|---|
committer | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2016-09-16 19:25:55 +0200 |
commit | 0e00e962c57138f0dd8c261cbd6918782deec3c4 (patch) | |
tree | dd87ce6e48b3d6b679f12e240d167619a886e396 /gdb/linux-nat.c | |
parent | 169fe0df159c04cd7344d24cc6b1268bd219f830 (diff) | |
download | gdb-0e00e962c57138f0dd8c261cbd6918782deec3c4.zip gdb-0e00e962c57138f0dd8c261cbd6918782deec3c4.tar.gz gdb-0e00e962c57138f0dd8c261cbd6918782deec3c4.tar.bz2 |
linux-nat: Add function lwp_is_stepping
Add the function lwp_is_stepping which indicates whether the given LWP
is currently single-stepping. This is a common interface, usable from
native GDB as well as from gdbserver.
gdb/gdbserver/ChangeLog:
* linux-low.c (lwp_is_stepping): New function.
gdb/ChangeLog:
* nat/linux-nat.h (lwp_is_stepping): New declaration.
* linux-nat.c (lwp_is_stepping): New function.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 7410f8e..8e9eb0b 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -355,6 +355,14 @@ lwp_stop_reason (struct lwp_info *lwp) return lwp->stop_reason; } +/* See nat/linux-nat.h. */ + +int +lwp_is_stepping (struct lwp_info *lwp) +{ + return lwp->step; +} + /* Trivial list manipulation functions to keep track of a list of new stopped processes. */ |