e24d4c64ff
include nm-i386.h instead. (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT) (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT) (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK) (target_stopped_data_address, target_insert_watchpoint) (target_remove_watchpoint, target_insert_hw_breakpoint) (target_remove_hw_breakpoint): Don't define. (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL) (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR) (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_* functions from go32-nat.c. * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o. * go32-nat.c <top level>: Remove prototypes for watchpoint- related functions. Remove definitions of watchpoint-related macros. (go32_mourn_inferior): Call i386_cleanup_dregs instead of the private cleanup_dregs function. (cleanup_dregs, go32_insert_watchpoint) (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint) (go32_remove_watchpoint, go32_remove_aligned_watchpoint) (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint) (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove. (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
38 lines
1.3 KiB
C
38 lines
1.3 KiB
C
/* Native definitions for Intel x86 running DJGPP.
|
|
Copyright (C) 1997, 1998, 1999, 2001 Free Software Foundation, Inc.
|
|
|
|
This file is part of GDB.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
#define NO_PTRACE_H
|
|
|
|
#define I386_USE_GENERIC_WATCHPOINTS
|
|
|
|
#include "i386/nm-i386.h"
|
|
|
|
/* Support for hardware-assisted breakpoints and watchpoints. */
|
|
|
|
#define I386_DR_LOW_SET_CONTROL(VAL) go32_set_dr7 (VAL)
|
|
extern void go32_set_dr7 (unsigned);
|
|
|
|
#define I386_DR_LOW_SET_ADDR(N,ADDR) go32_set_dr (N,ADDR)
|
|
extern void go32_set_dr (int, CORE_ADDR);
|
|
|
|
#define I386_DR_LOW_RESET_ADDR(N)
|
|
|
|
#define I386_DR_LOW_GET_STATUS() go32_get_dr6 ()
|
|
extern unsigned go32_get_dr6 (void);
|