aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2016-09-16 19:25:55 +0200
committerAndreas Arnez <arnez@linux.vnet.ibm.com>2016-09-16 19:25:55 +0200
commit0e00e962c57138f0dd8c261cbd6918782deec3c4 (patch)
treedd87ce6e48b3d6b679f12e240d167619a886e396 /gdb/gdbserver
parent169fe0df159c04cd7344d24cc6b1268bd219f830 (diff)
downloadgdb-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/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/linux-low.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index af8420f..499ae3d 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * linux-low.c (lwp_is_stepping): New function.
+
2016-09-06 Carl Love <cel@us.ibm.com>
* server.c (start_inferior): Fixed comment, requested comment change
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index fb70715..4203b92 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -176,6 +176,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->stepping;
+}
+
/* A list of all unknown processes which receive stop signals. Some
other process will presumably claim each of these as forked
children momentarily. */