]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Move have_ptrace_getregset to linux-low.c
authorYao Qi <yao.qi@linaro.org>
Tue, 4 Aug 2015 13:34:14 +0000 (14:34 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 4 Aug 2015 13:34:14 +0000 (14:34 +0100)
This patch moves variable have_ptrace_getregset from linux-x86-low.c
to linux-low.c, so that arm can use it too.

gdb/gdbserver:

2015-08-04  Yao Qi  <yao.qi@linaro.org>

* linux-x86-low.c (have_ptrace_getregset): Move it to ...
* linux-low.c: ... here.
* linux-low.h (have_ptrace_getregset): Declare it.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c
gdb/gdbserver/linux-low.h
gdb/gdbserver/linux-x86-low.c

index 443c25e25309acd3eedb9c803294ea4f04db0ef6..f653d77409123b3454d17095b923c363fcd0b620 100644 (file)
@@ -1,3 +1,9 @@
+2015-08-04  Yao Qi  <yao.qi@linaro.org>
+
+       * linux-x86-low.c (have_ptrace_getregset): Move it to ...
+       * linux-low.c: ... here.
+       * linux-low.h (have_ptrace_getregset): Declare it.
+
 2015-08-04  Pedro Alves  <palves@redhat.com>
 
        * thread-db.c (struct thread_db): Use new typedefs.
index 82fb7f9bb25da6186b382bdc72daf1cf95f402d1..f1e1d7271d7df59becb92fa966905e3e3c862e7a 100644 (file)
@@ -139,6 +139,9 @@ typedef struct
 } Elf64_auxv_t;
 #endif
 
+/* Does the current host support PTRACE_GETREGSET?  */
+int have_ptrace_getregset = -1;
+
 /* LWP accessors.  */
 
 /* See nat/linux-nat.h.  */
index 5a3697b7be160389b19973eaed907789c743f652..24fb0158d5f1b5d9e20d49b4e392543e4b992a5a 100644 (file)
@@ -373,3 +373,5 @@ int thread_db_handle_monitor_command (char *);
 int thread_db_get_tls_address (struct thread_info *thread, CORE_ADDR offset,
                               CORE_ADDR load_module, CORE_ADDR *address);
 int thread_db_look_up_one_symbol (const char *name, CORE_ADDR *addrp);
+
+extern int have_ptrace_getregset;
index ec2d9068a0f5ed1471c4cdee0e23cf679fca1b0a..73fe6cd56c2b5bb09f5ee9e35725c7d373a8ef4c 100644 (file)
@@ -1142,9 +1142,6 @@ int have_ptrace_getfpxregs =
 #endif
 ;
 
-/* Does the current host support PTRACE_GETREGSET?  */
-static int have_ptrace_getregset = -1;
-
 /* Get Linux/x86 target description from running target.  */
 
 static const struct target_desc *