fix typos in ada-lang.c comment
[deliverable/binutils-gdb.git] / gdb / x86-nat.h
CommitLineData
df7e5265 1/* Native-dependent code for x86 (i386 and x86-64).
9bb9e8ad
PM
2
3 Low level functions to implement Oeprating System specific
df7e5265 4 code to manipulate x86 debug registers.
9bb9e8ad 5
61baf725 6 Copyright (C) 2009-2017 Free Software Foundation, Inc.
9bb9e8ad
PM
7
8 This file is part of GDB.
9
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3 of the License, or
13 (at your option) any later version.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>. */
22
df7e5265
GB
23#ifndef X86_NAT_H
24#define X86_NAT_H 1
9bb9e8ad 25
df7e5265 26#include "nat/x86-dregs.h"
b9228891 27
9bb9e8ad
PM
28/* Hardware-assisted breakpoints and watchpoints. */
29
30/* Add watchpoint methods to the provided target_ops.
df7e5265 31 Targets using x86 family debug registers for watchpoints should call
9bb9e8ad
PM
32 this. */
33struct target_ops;
df7e5265 34extern void x86_use_watchpoints (struct target_ops *);
9bb9e8ad 35
df7e5265 36/* Use this function to set x86_dr_low debug_register_length field
9bb9e8ad
PM
37 rather than setting it directly to check that the length is only
38 set once. It also enables the 'maint set/show show-debug-regs'
39 command. */
40
df7e5265 41extern void x86_set_debug_register_length (int len);
9bb9e8ad 42
df7e5265 43/* Use this function to reset the x86-nat.c debug register state. */
9bb9e8ad 44
df7e5265 45extern void x86_cleanup_dregs (void);
9bb9e8ad 46
26cb8b7c
PA
47/* Called whenever GDB is no longer debugging process PID. It deletes
48 data structures that keep track of debug register state. */
49
df7e5265 50extern void x86_forget_process (pid_t pid);
7b50312a 51
df7e5265 52#endif /* X86_NAT_H */
This page took 0.785302 seconds and 4 git commands to generate.