1 /* Native support for Linux/x86-64.
3 Free Software Foundation, Inc.
4 Contributed by Jiri Smid, SuSE Labs.
6 This file is part of GDB.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
28 #define I386_USE_GENERIC_WATCHPOINTS
29 #include "i386/nm-i386.h"
31 /* Support for 8-byte wide hw watchpoints. */
32 #define TARGET_HAS_DR_LEN_8 1
34 /* Provide access to the i386 hardware debugging registers. */
36 extern void x86_64_linux_dr_set_control (unsigned long control
);
37 #define I386_DR_LOW_SET_CONTROL(control) \
38 x86_64_linux_dr_set_control (control)
40 extern void x86_64_linux_dr_set_addr (int regnum
, CORE_ADDR addr
);
41 #define I386_DR_LOW_SET_ADDR(regnum, addr) \
42 x86_64_linux_dr_set_addr (regnum, addr)
44 extern void x86_64_linux_dr_reset_addr (int regnum
);
45 #define I386_DR_LOW_RESET_ADDR(regnum) \
46 x86_64_linux_dr_reset_addr (regnum)
48 extern unsigned long x86_64_linux_dr_get_status (void);
49 #define I386_DR_LOW_GET_STATUS() \
50 x86_64_linux_dr_get_status ()
53 #define REGISTER_U_ADDR(addr, blockend, regno) \
54 (addr) = x86_64_register_u_addr ((blockend),(regno));
55 CORE_ADDR
x86_64_register_u_addr (CORE_ADDR
, int);
57 /* Return the size of the user struct. */
58 #define KERNEL_U_SIZE kernel_u_size()
59 extern int kernel_u_size (void);
61 /* Offset of the registers within the user area. */
62 #define U_REGS_OFFSET 0
64 /* This is the amount to subtract from u.u_ar0
65 to get the offset in the core file of the register values. */
66 #define KERNEL_U_ADDR 0x0
68 /* FIXME use special child_xfer_memory. */
69 #define CHILD_XFER_MEMORY
71 #define PTRACE_ARG3_TYPE void*
74 /* We define this if link.h is available, because with ELF we use SVR4 style
78 #define SVR4_SHARED_LIBS
79 #include "solib.h" /* Support for shared libraries. */
82 /* Override copies of {fetch,store}_inferior_registers in `infptrace.c'. */
83 #define FETCH_INFERIOR_REGISTERS
85 /* Override child_resume in `infptrace.c'. */
88 // extern int lin_lwp_prepare_to_proceed (void);
89 #undef PREPARE_TO_PROCEED
90 // #define PREPARE_TO_PROCEED(select_it) lin_lwp_prepare_to_proceed ()
92 extern void lin_lwp_attach_lwp (ptid_t pid
, int verbose
);
93 #define ATTACH_LWP(pid, verbose) lin_lwp_attach_lwp ((pid), (verbose))
97 extern void lin_thread_get_thread_signals (sigset_t
* mask
);
98 #define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask)
100 #endif /* NM_X86_64.h */
This page took 0.116562 seconds and 5 git commands to generate.