gdb/gdbserver/x86-low.c - gdb

Functions defined

Source code

  1. /* Low level support for x86 (i386 and x86-64).

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

  3.    This file is part of GDB.

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

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

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

  14. #include "server.h"
  15. #include "x86-low.h"

  16. /* Clear the reference counts and forget everything we knew about the
  17.    debug registers.  */

  18. void
  19. x86_low_init_dregs (struct x86_debug_reg_state *state)
  20. {
  21.   int i;

  22.   ALL_DEBUG_ADDRESS_REGISTERS (i)
  23.     {
  24.       state->dr_mirror[i] = 0;
  25.       state->dr_ref_count[i] = 0;
  26.     }
  27.   state->dr_control_mirror = 0;
  28.   state->dr_status_mirror  = 0;
  29. }