diff options
author | Andrew Burgess <aburgess@redhat.com> | 2024-05-08 15:04:56 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2024-06-14 09:08:45 +0100 |
commit | a402c3ac22ec70620d19a0758f10a8d15835fb5e (patch) | |
tree | 314729667ce76f678abd004d49ff042c880a7532 /gdbserver | |
parent | 18d4886c009aaa4fa26bf440ae57fbdd14acce11 (diff) | |
download | gdb-a402c3ac22ec70620d19a0758f10a8d15835fb5e.zip gdb-a402c3ac22ec70620d19a0758f10a8d15835fb5e.tar.gz gdb-a402c3ac22ec70620d19a0758f10a8d15835fb5e.tar.bz2 |
gdb: move have_ptrace_getregset declaration into gdb/nat directory
In a later commit I want to access have_ptrace_getregset from a .c
file in the nat/ directory. To achieve this I need access to the
declaration of have_ptrace_getregset.
Currently have_ptrace_getregset is declared (and defined) twice, once
in GDB and once in gdbserver.
This commit moves the declaration into nat/linux-nat.h, but leaves the
two definitions where they are. Now, in my later commit, I can pull
in the declaration from nat/linux-nat.h.
There should be no user visible changes after this commit.
Approved-By: Felix Willgerodt <felix.willgerodt@intel.com>
Diffstat (limited to 'gdbserver')
-rw-r--r-- | gdbserver/linux-low.cc | 2 | ||||
-rw-r--r-- | gdbserver/linux-low.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc index ac7f980..266c7de 100644 --- a/gdbserver/linux-low.cc +++ b/gdbserver/linux-low.cc @@ -133,7 +133,7 @@ typedef struct } Elf64_auxv_t; #endif -/* Does the current host support PTRACE_GETREGSET? */ +/* See nat/linux-nat.h. */ enum tribool have_ptrace_getregset = TRIBOOL_UNKNOWN; /* Return TRUE if THREAD is the leader thread of the process. */ diff --git a/gdbserver/linux-low.h b/gdbserver/linux-low.h index eaf8752..273c046 100644 --- a/gdbserver/linux-low.h +++ b/gdbserver/linux-low.h @@ -951,8 +951,6 @@ void thread_db_notice_clone (struct thread_info *parent_thr, ptid_t child_ptid); bool thread_db_thread_handle (ptid_t ptid, gdb_byte **handle, int *handle_len); -extern enum tribool have_ptrace_getregset; - /* Search for the value with type MATCH in the auxv vector, with entries of length WORDSIZE bytes, of process with pid PID. If found, store the value in *VALP and return 1. If not found or if there is an error, |