gdb/x86-nat.h - gdb

Macros defined

Source code

  1. /* Native-dependent code for x86 (i386 and x86-64).

  2.    Low level functions to implement Oeprating System specific
  3.    code to manipulate x86 debug registers.

  4.    Copyright (C) 2009-2015 Free Software Foundation, Inc.

  5.    This file is part of GDB.

  6.    This program is free software; you can redistribute it and/or modify
  7.    it under the terms of the GNU General Public License as published by
  8.    the Free Software Foundation; either version 3 of the License, or
  9.    (at your option) any later version.

  10.    This program is distributed in the hope that it will be useful,
  11.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.    GNU General Public License for more details.

  14.    You should have received a copy of the GNU General Public License
  15.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  16. #ifndef X86_NAT_H
  17. #define X86_NAT_H 1

  18. #include "nat/x86-dregs.h"

  19. /* Hardware-assisted breakpoints and watchpoints.  */

  20. /* Add watchpoint methods to the provided target_ops.
  21.    Targets using x86 family debug registers for watchpoints should call
  22.    this.  */
  23. struct target_ops;
  24. extern void x86_use_watchpoints (struct target_ops *);

  25. /* Use this function to set x86_dr_low debug_register_length field
  26.    rather than setting it directly to check that the length is only
  27.    set once.  It also enables the 'maint set/show show-debug-regs'
  28.    command.  */

  29. extern void x86_set_debug_register_length (int len);

  30. /* Use this function to reset the x86-nat.c debug register state.  */

  31. extern void x86_cleanup_dregs (void);

  32. /* Return a pointer to the local mirror of the debug registers of
  33.    process PID.  */

  34. extern struct x86_debug_reg_state *x86_debug_reg_state (pid_t pid);

  35. /* Called whenever GDB is no longer debugging process PID.  It deletes
  36.    data structures that keep track of debug register state.  */

  37. extern void x86_forget_process (pid_t pid);

  38. #endif /* X86_NAT_H */