198944Sobrien/* Native definitions for Intel x86 running DJGPP.
2130803Smarcel   Copyright 1997, 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
398944Sobrien
498944Sobrien   This file is part of GDB.
598944Sobrien
698944Sobrien   This program is free software; you can redistribute it and/or modify
798944Sobrien   it under the terms of the GNU General Public License as published by
898944Sobrien   the Free Software Foundation; either version 2 of the License, or
998944Sobrien   (at your option) any later version.
1098944Sobrien
1198944Sobrien   This program is distributed in the hope that it will be useful,
1298944Sobrien   but WITHOUT ANY WARRANTY; without even the implied warranty of
1398944Sobrien   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1498944Sobrien   GNU General Public License for more details.
1598944Sobrien
1698944Sobrien   You should have received a copy of the GNU General Public License
1798944Sobrien   along with this program; if not, write to the Free Software
1898944Sobrien   Foundation, Inc., 59 Temple Place - Suite 330,
1998944Sobrien   Boston, MA 02111-1307, USA.  */
2098944Sobrien
2198944Sobrien#define I386_USE_GENERIC_WATCHPOINTS
2298944Sobrien
2398944Sobrien#include "i386/nm-i386.h"
2498944Sobrien
2598944Sobrien/* Support for hardware-assisted breakpoints and watchpoints.  */
2698944Sobrien
2798944Sobrien#define I386_DR_LOW_SET_CONTROL(VAL)	go32_set_dr7 (VAL)
2898944Sobrienextern void go32_set_dr7 (unsigned);
2998944Sobrien
3098944Sobrien#define I386_DR_LOW_SET_ADDR(N,ADDR)	go32_set_dr (N,ADDR)
3198944Sobrienextern void go32_set_dr (int, CORE_ADDR);
3298944Sobrien
3398944Sobrien#define I386_DR_LOW_RESET_ADDR(N)
3498944Sobrien
3598944Sobrien#define I386_DR_LOW_GET_STATUS()	go32_get_dr6 ()
3698944Sobrienextern unsigned go32_get_dr6 (void);
37