]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/x86-linux-nat.h
Move duplicated code into new files
[thirdparty/binutils-gdb.git] / gdb / x86-linux-nat.h
1 /* Native-dependent code for GNU/Linux x86 (i386 and x86-64).
2
3 Copyright (C) 1999-2014 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
20 #ifndef X86_LINUX_NAT_H
21 #define X86_LINUX_NAT_H 1
22
23 #ifndef PTRACE_GETREGSET
24 #define PTRACE_GETREGSET 0x4204
25 #endif
26
27 #ifndef PTRACE_SETREGSET
28 #define PTRACE_SETREGSET 0x4205
29 #endif
30
31 /* Does the current host support PTRACE_GETREGSET? */
32 extern int have_ptrace_getregset;
33 \f
34
35 /* Helper for ps_get_thread_area. Sets BASE_ADDR to a pointer to
36 the thread local storage (or its descriptor) and returns PS_OK
37 on success. Returns PS_ERR on failure. */
38
39 extern ps_err_e x86_linux_get_thread_area (pid_t pid, void *addr,
40 unsigned int *base_addr);
41 \f
42
43 /* Create an x86 GNU/Linux target. */
44
45 extern struct target_ops *x86_linux_create_target (void);
46
47 /* Add an x86 GNU/Linux target. */
48
49 extern void x86_linux_add_target (struct target_ops *t);
50
51 #endif