home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / gdb-4.14-src.lha / gdb-4.14 / gdb / config / i386 / nm-linux.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-22  |  1.7 KB  |  47 lines

  1. /* Native support for linux, for GDB, the GNU debugger.
  2.    Copyright (C) 1986, 1987, 1989, 1992 Free Software Foundation, Inc.
  3.  
  4. This file is part of GDB.
  5.  
  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 2 of the License, or
  9. (at your option) any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #include "i386/nm-i386v.h"
  21.  
  22. /* Tell gdb that we can attach and detach other processes */
  23. #define ATTACH_DETACH
  24.  
  25. #define U_REGS_OFFSET 0
  26.  
  27. /* Linux uses the SYSV i386v-nat.c support, but doesn't have <sys/reg.h> */
  28.  
  29. #define NO_SYS_REG_H
  30.  
  31. /* Linux supports the 386 hardware debugging registers.  */
  32. #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1
  33.  
  34. /* After a watchpoint trap, the PC points to the instruction after
  35.    the one that caused the trap.  Therefore we don't need to step over it.
  36.    But we do need to reset the status register to avoid another trap.  */
  37. #define HAVE_CONTINUABLE_WATCHPOINT
  38.  
  39. #define STOPPED_BY_WATCHPOINT(W)  \
  40.   i386_stopped_by_watchpoint (inferior_pid)
  41.  
  42. /* Use these macros for watchpoint insertion/removal.  */
  43. #define target_insert_watchpoint(addr, len, type)  \
  44.   i386_insert_watchpoint (inferior_pid, addr, len, 2)
  45. #define target_remove_watchpoint(addr, len, type)  \
  46.   i386_remove_watchpoint (inferior_pid, addr, len)
  47.