Make linux_stop_lwp be a shared function
authorGary Benson <gbenson@redhat.com>
Tue, 24 Mar 2015 14:05:44 +0000 (14:05 +0000)
committerGary Benson <gbenson@redhat.com>
Tue, 24 Mar 2015 14:05:44 +0000 (14:05 +0000)
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.

gdb/ChangeLog
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.h
gdb/linux-nat.h
gdb/nat/linux-nat.h

index fb5d1b430cc3f46fc45294cbe5af0ab61cbe5c80..d38e8283f0103ba0f4d47764955efb640624707b 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-24  Gary Benson  <gbenson@redhat.com>
+
+       * linux-nat.h (linux_stop_lwp): Move declaration to...
+       * nat/linux-nat.h (linux_stop_lwp): New declaration.
+
 2015-03-24  Gary Benson  <gbenson@redhat.com>
 
        * linux-nat.h: Include nat/linux-nat.h.
index 1badce38acb1e11673d8ceb547ee26e8fd12338e..0eef24e601c7db95cf4fbd9f42ab7c8cc6caa3ae 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 2cfe140449a122dfbc54f6f91b8416188eec9d30..5c52b14f0016593126bf5eecb10f933704fc32b2 100644 (file)
@@ -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);
index 4dd3932f5c99e5c82b0f71b36a9800f946f451b8..d935270847dd9cd9d47ce62c811f61c494f4c9f1 100644 (file)
@@ -140,7 +140,7 @@ void linux_proc_pending_signals (int pid, sigset_t *pending,
 
 extern int lin_lwp_attach_lwp (ptid_t ptid);
 
-extern void linux_stop_lwp (struct lwp_info *lwp);
+/* For linux_stop_lwp see nat/linux-nat.h.  */
 
 /* Stop all LWPs, synchronously.  (Any events that trigger while LWPs
    are being stopped are left pending.)  */
index c534944631891c3375c1934e1bc9c1b9f9230bb2..c9830254dcc83888de85f8a896a9763e231e16f3 100644 (file)
@@ -47,4 +47,9 @@ extern struct lwp_info *iterate_over_lwps (ptid_t filter,
                                           iterate_over_lwps_ftype callback,
                                           void *data);
 
+/* Cause LWP to stop.  This function must be provided by the
+   client.  */
+
+extern void linux_stop_lwp (struct lwp_info *lwp);
+
 #endif /* LINUX_NAT_H */
This page took 0.034265 seconds and 4 git commands to generate.