mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
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>
This commit is contained in:
@@ -299,9 +299,6 @@ lwp_info_range all_lwps ();
|
||||
|
||||
lwp_info_safe_range all_lwps_safe ();
|
||||
|
||||
/* Does the current host support PTRACE_GETREGSET? */
|
||||
extern enum tribool have_ptrace_getregset;
|
||||
|
||||
/* Called from the LWP layer to inform the thread_db layer that PARENT
|
||||
spawned CHILD. Both LWPs are currently stopped. This function
|
||||
does whatever is required to have the child LWP under the
|
||||
|
||||
Reference in New Issue
Block a user