forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user