Commit | Line | Data |
---|---|---|
9bb9e8ad PM |
1 | /* Native-dependent code for the i386. |
2 | ||
3 | Low level functions to implement Oeprating System specific | |
4 | code to manipulate I386 debug registers. | |
5 | ||
ecd75fc8 | 6 | Copyright (C) 2009-2014 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 | ||
9bb9e8ad PM |
23 | #ifndef I386_NAT_H |
24 | #define I386_NAT_H 1 | |
25 | ||
b9228891 GB |
26 | #include "nat/i386-dregs.h" |
27 | ||
9bb9e8ad PM |
28 | /* Hardware-assisted breakpoints and watchpoints. */ |
29 | ||
30 | /* Add watchpoint methods to the provided target_ops. | |
31 | Targets using i386 family debug registers for watchpoints should call | |
32 | this. */ | |
33 | struct target_ops; | |
34 | extern void i386_use_watchpoints (struct target_ops *); | |
35 | ||
9bb9e8ad PM |
36 | /* Use this function to set i386_dr_low debug_register_length field |
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 | ||
41 | extern void i386_set_debug_register_length (int len); | |
42 | ||
43 | /* Use this function to reset the i386-nat.c debug register state. */ | |
44 | ||
45 | extern void i386_cleanup_dregs (void); | |
46 | ||
26cb8b7c PA |
47 | /* Return a pointer to the local mirror of the debug registers of |
48 | process PID. */ | |
7b50312a | 49 | |
26cb8b7c PA |
50 | extern struct i386_debug_reg_state *i386_debug_reg_state (pid_t pid); |
51 | ||
52 | /* Called whenever GDB is no longer debugging process PID. It deletes | |
53 | data structures that keep track of debug register state. */ | |
54 | ||
55 | extern void i386_forget_process (pid_t pid); | |
7b50312a | 56 | |
9bb9e8ad | 57 | #endif /* I386_NAT_H */ |