aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2015-03-24 14:05:44 +0000
committerGary Benson <gbenson@redhat.com>2015-03-24 14:05:44 +0000
commitb2f7c7e8b7046bf3dd99e3fb7329feb962a6bc7d (patch)
tree7d66edb2d15fceef51bda35b5e0b6f4d7011fc6c /gdb/gdbserver
parent6d4ee8c6ad7d5b04e524b2b48ffe5639028594a5 (diff)
downloadgdb-b2f7c7e8b7046bf3dd99e3fb7329feb962a6bc7d.zip
gdb-b2f7c7e8b7046bf3dd99e3fb7329feb962a6bc7d.tar.gz
gdb-b2f7c7e8b7046bf3dd99e3fb7329feb962a6bc7d.tar.bz2
Make linux_stop_lwp be a shared function
Both GDB and gdbserver had linux_stop_lwp functions with identical declarations. This commit moves these to nat/linux-nat.h to allow shared code to use the function. gdb/ChangeLog: * linux-nat.h (linux_stop_lwp): Move declaration to... * nat/linux-nat.h (linux_stop_lwp): New declaration. gdb/gdbserver/ChangeLog: * linux-low.h (linux_stop_lwp): Remove declaration.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/linux-low.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 1badce3..0eef24e 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,9 @@
2015-03-24 Gary Benson <gbenson@redhat.com>
+ * linux-low.h (linux_stop_lwp): Remove declaration.
+
+2015-03-24 Gary Benson <gbenson@redhat.com>
+
* linux-low.h: Include nat/linux-nat.h.
* linux-low.c (iterate_over_lwps_args): New structure.
(iterate_over_lwps_filter): New function.
diff --git a/gdb/gdbserver/linux-low.h b/gdb/gdbserver/linux-low.h
index 2cfe140..5c52b14 100644
--- a/gdb/gdbserver/linux-low.h
+++ b/gdb/gdbserver/linux-low.h
@@ -355,7 +355,7 @@ int linux_pid_exe_is_elf_64_file (int pid, unsigned int *machine);
int linux_attach_lwp (ptid_t ptid);
struct lwp_info *find_lwp_pid (ptid_t ptid);
-void linux_stop_lwp (struct lwp_info *lwp);
+/* For linux_stop_lwp see nat/linux-nat.h. */
#ifdef HAVE_LINUX_REGSETS
void initialize_regsets_info (struct regsets_info *regsets_info);