URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/tags/gdb/gdb-6.8/gdb-6.8.openrisc-2.1/gdb/config/i386
- from Rev 24 to Rev 33
- ↔ Reverse comparison
Rev 24 → Rev 33
/nbsdelf.mh
0,0 → 1,5
# Host: NetBSD/i386 ELF |
NATDEPFILES= fork-child.o inf-ptrace.o \ |
nbsd-nat.o i386bsd-nat.o i386nbsd-nat.o bsd-kvm.o |
|
LOADLIBES= -lkvm |
/fbsd.mh
0,0 → 1,7
# Host: FreeBSD/i386 |
NATDEPFILES= fork-child.o inf-ptrace.o \ |
fbsd-nat.o i386-nat.o i386bsd-nat.o i386fbsd-nat.o \ |
gcore.o bsd-kvm.o |
NAT_FILE= nm-fbsd.h |
|
LOADLIBES= -lkvm |
/nbsdaout.mh
0,0 → 1,6
# Host: NetBSD/i386 a.out |
NATDEPFILES= fork-child.o inf-ptrace.o \ |
nbsd-nat.o i386bsd-nat.o i386nbsd-nat.o bsd-kvm.o \ |
solib.o solib-sunos.o |
|
LOADLIBES= -lkvm |
/obsdaout.mh
0,0 → 1,6
# Host: OpenBSD/i386 a.out |
NATDEPFILES= fork-child.o inf-ptrace.o \ |
i386bsd-nat.o i386nbsd-nat.o i386obsd-nat.o bsd-kvm.o \ |
solib.o solib-sunos.o |
|
LOADLIBES= -lkvm |
/mingw.mh
0,0 → 1,4
MH_CFLAGS= |
NATDEPFILES= i386-nat.o win32-nat.o |
NAT_FILE=nm-cygwin.h |
XM_CLIBS= |
/nm-i386sol2.h
0,0 → 1,57
/* Native support for i386 running Solaris 2. |
Copyright 1998, 1999, 2000, 2007, 2008 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 3 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, see <http://www.gnu.org/licenses/>. */ |
|
#ifdef NEW_PROC_API /* Solaris 6 and above can do HW watchpoints */ |
|
#define TARGET_HAS_HARDWARE_WATCHPOINTS |
|
/* The man page for proc4 on solaris 6 and 7 says that the system |
can support "thousands" of hardware watchpoints, but gives no |
method for finding out how many. So just tell GDB 'yes'. */ |
#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(TYPE, CNT, OT) 1 |
#define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(SIZE) 1 |
|
/* When a hardware watchpoint fires off the PC will be left at the |
instruction following the one which caused the watchpoint. |
It will *NOT* be necessary for GDB to step over the watchpoint. */ |
#define HAVE_CONTINUABLE_WATCHPOINT 1 |
|
/* Solaris x86 2.6 and 2.7 targets have a kernel bug when stepping |
over an instruction that causes a page fault without triggering |
a hardware watchpoint. The kernel properly notices that it shouldn't |
stop, because the hardware watchpoint is not triggered, but it forgets |
the step request and continues the program normally. |
Work around the problem by removing hardware watchpoints if a step is |
requested, GDB will check for a hardware watchpoint trigger after the |
step anyway. */ |
#define CANNOT_STEP_HW_WATCHPOINTS |
|
extern int procfs_stopped_by_watchpoint (ptid_t); |
#define STOPPED_BY_WATCHPOINT(W) \ |
procfs_stopped_by_watchpoint(inferior_ptid) |
|
/* Use these macros for watchpoint insertion/deletion. */ |
/* type can be 0: write watch, 1: read watch, 2: access watch (read/write) */ |
|
extern int procfs_set_watchpoint (ptid_t, CORE_ADDR, int, int, int); |
#define target_insert_watchpoint(ADDR, LEN, TYPE) \ |
procfs_set_watchpoint (inferior_ptid, ADDR, LEN, TYPE, 1) |
#define target_remove_watchpoint(ADDR, LEN, TYPE) \ |
procfs_set_watchpoint (inferior_ptid, ADDR, 0, 0, 0) |
|
#endif /* NEW_PROC_API */ |
nm-i386sol2.h
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: nm-i386.h
===================================================================
--- nm-i386.h (nonexistent)
+++ nm-i386.h (revision 33)
@@ -0,0 +1,115 @@
+/* Native macro definitions for GDB on an Intel i[3456]86.
+ Copyright 2001, 2004, 2007, 2008 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 3 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, see . */
+
+#ifndef NM_I386_H
+#define NM_I386_H 1
+
+/* Hardware-assisted breakpoints and watchpoints. */
+
+/* Targets should define this to use the generic x86 watchpoint support. */
+#ifdef I386_USE_GENERIC_WATCHPOINTS
+
+/* Clear the reference counts and forget everything we knew about DRi. */
+extern void i386_cleanup_dregs (void);
+
+/* Insert a watchpoint to watch a memory region which starts at
+ address ADDR and whose length is LEN bytes. Watch memory accesses
+ of the type TYPE. Return 0 on success, -1 on failure. */
+extern int i386_insert_watchpoint (CORE_ADDR addr, int len, int type);
+
+/* Remove a watchpoint that watched the memory region which starts at
+ address ADDR, whose length is LEN bytes, and for accesses of the
+ type TYPE. Return 0 on success, -1 on failure. */
+extern int i386_remove_watchpoint (CORE_ADDR addr, int len, int type);
+
+/* Return non-zero if we can watch a memory region that starts at
+ address ADDR and whose length is LEN bytes. */
+extern int i386_region_ok_for_watchpoint (CORE_ADDR addr, int len);
+
+/* Return non-zero if the inferior has some break/watchpoint that
+ triggered. */
+extern int i386_stopped_by_hwbp (void);
+
+/* If the inferior has some break/watchpoint that triggered, set
+ the address associated with that break/watchpoint and return
+ true. Otherwise, return false. */
+extern int i386_stopped_data_address (CORE_ADDR *);
+
+/* Insert a hardware-assisted breakpoint at BP_TGT->placed_address.
+ Return 0 on success, EBUSY on failure. */
+struct bp_target_info;
+extern int i386_insert_hw_breakpoint (struct bp_target_info *bp_tgt);
+
+/* Remove a hardware-assisted breakpoint at BP_TGT->placed_address.
+ Return 0 on success, -1 on failure. */
+extern int i386_remove_hw_breakpoint (struct bp_target_info *bp_tgt);
+
+/* Returns the number of hardware watchpoints of type TYPE that we can
+ set. Value is positive if we can set CNT watchpoints, zero if
+ setting watchpoints of type TYPE is not supported, and negative if
+ CNT is more than the maximum number of watchpoints of type TYPE
+ that we can support. TYPE is one of bp_hardware_watchpoint,
+ bp_read_watchpoint, bp_write_watchpoint, or bp_hardware_breakpoint.
+ CNT is the number of such watchpoints used so far (including this
+ one). OTHERTYPE is non-zero if other types of watchpoints are
+ currently enabled.
+
+ We always return 1 here because we don't have enough information
+ about possible overlap of addresses that they want to watch. As an
+ extreme example, consider the case where all the watchpoints watch
+ the same address and the same region length: then we can handle a
+ virtually unlimited number of watchpoints, due to debug register
+ sharing implemented via reference counts in i386-nat.c. */
+
+#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1
+
+/* Returns non-zero if we can use hardware watchpoints to watch a
+ region whose address is ADDR and whose length is LEN. */
+
+#define TARGET_REGION_OK_FOR_HW_WATCHPOINT(addr, len) \
+ i386_region_ok_for_watchpoint (addr, len)
+
+/* After a watchpoint trap, the PC points to the instruction after the
+ one that caused the trap. Therefore we don't need to step over it.
+ But we do need to reset the status register to avoid another trap. */
+
+#define HAVE_CONTINUABLE_WATCHPOINT 1
+
+extern int i386_stopped_by_watchpoint (void);
+
+#define STOPPED_BY_WATCHPOINT(W) (i386_stopped_by_watchpoint () != 0)
+
+#define target_stopped_data_address(target, x) i386_stopped_data_address(x)
+
+/* Use these macros for watchpoint insertion/removal. */
+
+#define target_insert_watchpoint(addr, len, type) \
+ i386_insert_watchpoint (addr, len, type)
+
+#define target_remove_watchpoint(addr, len, type) \
+ i386_remove_watchpoint (addr, len, type)
+
+#define target_insert_hw_breakpoint(bp_tgt) \
+ i386_insert_hw_breakpoint (bp_tgt)
+
+#define target_remove_hw_breakpoint(bp_tgt) \
+ i386_remove_hw_breakpoint (bp_tgt)
+
+#endif /* I386_USE_GENERIC_WATCHPOINTS */
+
+#endif /* NM_I386_H */
nm-i386.h
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: obsd.mh
===================================================================
--- obsd.mh (nonexistent)
+++ obsd.mh (revision 33)
@@ -0,0 +1,5 @@
+# Host: OpenBSD/i386 ELF
+NATDEPFILES= fork-child.o inf-ptrace.o \
+ i386bsd-nat.o i386obsd-nat.o bsd-kvm.o
+
+LOADLIBES= -lkvm
Index: fbsd64.mh
===================================================================
--- fbsd64.mh (nonexistent)
+++ fbsd64.mh (revision 33)
@@ -0,0 +1,6 @@
+# Host: FreeBSD/amd64
+NATDEPFILES= fork-child.o inf-ptrace.o \
+ fbsd-nat.o amd64-nat.o amd64bsd-nat.o amd64fbsd-nat.o \
+ gcore.o bsd-kvm.o
+
+LOADLIBES= -lkvm
Index: i386sol2.mh
===================================================================
--- i386sol2.mh (nonexistent)
+++ i386sol2.mh (revision 33)
@@ -0,0 +1,4 @@
+# Host: Solaris x86
+NATDEPFILES= fork-child.o i386v4-nat.o i386-sol2-nat.o \
+ procfs.o proc-api.o proc-events.o proc-flags.o proc-why.o gcore.o
+NAT_FILE= nm-i386sol2.h
Index: nm-linux.h
===================================================================
--- nm-linux.h (nonexistent)
+++ nm-linux.h (revision 33)
@@ -0,0 +1,54 @@
+/* Native support for GNU/Linux x86.
+
+ Copyright 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+ 2000, 2001, 2002, 2003, 2005, 2007, 2008 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 3 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, see . */
+
+#ifndef NM_LINUX_H
+#define NM_LINUX_H
+
+/* GNU/Linux supports the i386 hardware debugging registers. */
+#define I386_USE_GENERIC_WATCHPOINTS
+
+#include "i386/nm-i386.h"
+#include "config/nm-linux.h"
+
+/* Provide access to the i386 hardware debugging registers. */
+
+extern void i386_linux_dr_set_control (unsigned long control);
+#define I386_DR_LOW_SET_CONTROL(control) \
+ i386_linux_dr_set_control (control)
+
+extern void i386_linux_dr_set_addr (int regnum, CORE_ADDR addr);
+#define I386_DR_LOW_SET_ADDR(regnum, addr) \
+ i386_linux_dr_set_addr (regnum, addr)
+
+extern void i386_linux_dr_reset_addr (int regnum);
+#define I386_DR_LOW_RESET_ADDR(regnum) \
+ i386_linux_dr_reset_addr (regnum)
+
+extern unsigned long i386_linux_dr_get_status (void);
+#define I386_DR_LOW_GET_STATUS() \
+ i386_linux_dr_get_status ()
+
+
+#ifdef HAVE_PTRACE_GETFPXREGS
+/* Include register set support for the SSE registers. */
+#define FILL_FPXREGSET
+#endif
+
+#endif /* nm-linux.h */
nm-linux.h
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: nm-cygwin.h
===================================================================
--- nm-cygwin.h (nonexistent)
+++ nm-cygwin.h (revision 33)
@@ -0,0 +1,38 @@
+/* Native definitions for Intel x86 running CYGWIN.
+ Copyright 2002, 2006, 2007, 2008 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 3 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, see . */
+
+#define ATTACH_NO_WAIT
+#define ADD_SHARED_SYMBOL_FILES dll_symbol_command
+void dll_symbol_command (char *, int);
+
+#define I386_USE_GENERIC_WATCHPOINTS
+
+#include "i386/nm-i386.h"
+
+/* Support for hardware-assisted breakpoints and watchpoints. */
+
+#define I386_DR_LOW_SET_CONTROL(VAL) cygwin_set_dr7 (VAL)
+extern void cygwin_set_dr7 (unsigned);
+
+#define I386_DR_LOW_SET_ADDR(N,ADDR) cygwin_set_dr (N,ADDR)
+extern void cygwin_set_dr (int, CORE_ADDR);
+
+#define I386_DR_LOW_RESET_ADDR(N)
+
+#define I386_DR_LOW_GET_STATUS() cygwin_get_dr6 ()
+extern unsigned cygwin_get_dr6 (void);
nm-cygwin.h
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: nm-i386gnu.h
===================================================================
--- nm-i386gnu.h (nonexistent)
+++ nm-i386gnu.h (revision 33)
@@ -0,0 +1,40 @@
+/* Native-dependent definitions for Intel 386 running the GNU Hurd
+ Copyright 1994, 1995, 1996, 2002, 2007, 2008 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 3 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, see . */
+
+#ifndef NM_I386GNU_H
+#define NM_I386GNU_H
+
+#include
+#include
+#include
+#include "regcache.h"
+
+extern char *gnu_target_pid_to_str (int pid);
+
+/* Don't do wait_for_inferior on attach. */
+#define ATTACH_NO_WAIT
+
+/* Thread flavors used in re-setting the T bit. */
+#define THREAD_STATE_FLAVOR i386_REGS_SEGS_STATE
+#define THREAD_STATE_SIZE i386_THREAD_STATE_COUNT
+#define THREAD_STATE_SET_TRACED(state) \
+ ((struct i386_thread_state *) (state))->efl |= 0x100
+#define THREAD_STATE_CLEAR_TRACED(state) \
+ ((((struct i386_thread_state *) (state))->efl &= ~0x100), 1)
+
+#endif /* nm-i386gnu.h */
nm-i386gnu.h
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: linux.mh
===================================================================
--- linux.mh (nonexistent)
+++ linux.mh (revision 33)
@@ -0,0 +1,11 @@
+# Host: Intel 386 running GNU/Linux.
+
+NAT_FILE= nm-linux.h
+NATDEPFILES= inf-ptrace.o fork-child.o \
+ i386-nat.o i386-linux-nat.o \
+ proc-service.o linux-thread-db.o gcore.o \
+ linux-nat.o linux-fork.o
+
+# The dynamically loaded libthread_db needs access to symbols in the
+# gdb executable.
+LOADLIBES = -ldl -rdynamic
Index: cygwin.mh
===================================================================
--- cygwin.mh (nonexistent)
+++ cygwin.mh (revision 33)
@@ -0,0 +1,4 @@
+MH_CFLAGS=
+NATDEPFILES= i386-nat.o win32-nat.o
+NAT_FILE=nm-cygwin.h
+XM_CLIBS=
Index: nbsd64.mh
===================================================================
--- nbsd64.mh (nonexistent)
+++ nbsd64.mh (revision 33)
@@ -0,0 +1,3 @@
+# Host: NetBSD/amd64
+NATDEPFILES= fork-child.o inf-ptrace.o \
+ nbsd-nat.o amd64-nat.o amd64bsd-nat.o amd64nbsd-nat.o
Index: nto.mh
===================================================================
--- nto.mh (nonexistent)
+++ nto.mh (revision 33)
@@ -0,0 +1,4 @@
+# Host: Intel 386 running QNX.
+
+NATDEPFILES= nto-procfs.o
+NAT_FILE= config/nm-nto.h
Index: obsd64.mh
===================================================================
--- obsd64.mh (nonexistent)
+++ obsd64.mh (revision 33)
@@ -0,0 +1,5 @@
+# Host: OpenBSD/amd64
+NATDEPFILES= fork-child.o inf-ptrace.o \
+ amd64-nat.o amd64bsd-nat.o amd64obsd-nat.o bsd-kvm.o
+
+LOADLIBES= -lkvm
Index: i386gnu.mh
===================================================================
--- i386gnu.mh (nonexistent)
+++ i386gnu.mh (revision 33)
@@ -0,0 +1,31 @@
+# Host: Intel 386 running the GNU Hurd
+NATDEPFILES= i386gnu-nat.o gnu-nat.o corelow.o core-regset.o fork-child.o \
+ notify_S.o process_reply_S.o msg_reply_S.o \
+ msg_U.o exc_request_U.o exc_request_S.o
+
+NAT_FILE= nm-i386gnu.h
+MH_CFLAGS = -D_GNU_SOURCE
+
+XM_CLIBS = -lshouldbeinlibc
+
+# Use our own user stubs for the msg rpcs, so we can make them time out, in
+# case the program is fucked, or we guess the wrong signal thread.
+msg-MIGUFLAGS = -D'MSG_IMPORTS=waittime 1000;'
+
+# ick
+MIGCOM = $(MIG) -cc cat - /dev/null
+
+# Reply servers need special massaging of the code mig generates, to make
+# them work correctly for error returns in some cases.
+%_reply_S.h %_reply_S.c: %_reply.defs
+ $(CPP) $(CPPFLAGS) -DSERVERPREFIX=S_ -x c $< \
+ | $(MIGCOM) -sheader $*_reply_S.h -server $*_reply_S.raw -user /dev/null -header /dev/null \
+ && $(AWK) -f $(srcdir)/reply_mig_hack.awk < $*_reply_S.raw > $*_reply_S.c
+# Normal servers
+%_S.h %_S.c: %.defs
+ $(CPP) $(CPPFLAGS) -DSERVERPREFIX=S_ -x c $< \
+ | $(MIGCOM) -sheader $*_S.h -server $*_S.c -user /dev/null -header /dev/null
+# User rpc stubs
+%_U.h %_U.c: %.defs
+ $(CPP) $(CPPFLAGS) $($*-MIGUFLAGS) -x c $< \
+ | $(MIGCOM) -sheader /dev/null -server /dev/null -user $*_U.c -header $*_U.h
Index: nm-linux64.h
===================================================================
--- nm-linux64.h (nonexistent)
+++ nm-linux64.h (revision 33)
@@ -0,0 +1,53 @@
+/* Native support for GNU/Linux x86-64.
+
+ Copyright 2001, 2002, 2003, 2004, 2005, 2007, 2008
+ Free Software Foundation, Inc.
+
+ Contributed by Jiri Smid, SuSE Labs.
+
+ 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 3 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, see . */
+
+#ifndef NM_LINUX64_H
+#define NM_LINUX64_H
+
+/* GNU/Linux supports the i386 hardware debugging registers. */
+#define I386_USE_GENERIC_WATCHPOINTS
+
+#include "i386/nm-i386.h"
+#include "config/nm-linux.h"
+
+/* Support for 8-byte wide hardware watchpoints. */
+#define TARGET_HAS_DR_LEN_8 1
+
+/* Provide access to the i386 hardware debugging registers. */
+
+extern void amd64_linux_dr_set_control (unsigned long control);
+#define I386_DR_LOW_SET_CONTROL(control) \
+ amd64_linux_dr_set_control (control)
+
+extern void amd64_linux_dr_set_addr (int regnum, CORE_ADDR addr);
+#define I386_DR_LOW_SET_ADDR(regnum, addr) \
+ amd64_linux_dr_set_addr (regnum, addr)
+
+extern void amd64_linux_dr_reset_addr (int regnum);
+#define I386_DR_LOW_RESET_ADDR(regnum) \
+ amd64_linux_dr_reset_addr (regnum)
+
+extern unsigned long amd64_linux_dr_get_status (void);
+#define I386_DR_LOW_GET_STATUS() \
+ amd64_linux_dr_get_status ()
+
+#endif /* nm-linux64.h */
nm-linux64.h
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: nm-go32.h
===================================================================
--- nm-go32.h (nonexistent)
+++ nm-go32.h (revision 33)
@@ -0,0 +1,35 @@
+/* Native definitions for Intel x86 running DJGPP.
+ Copyright 1997, 1998, 1999, 2001, 2002, 2007, 2008
+ 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 3 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, see . */
+
+#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);
nm-go32.h
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: sol2-64.mh
===================================================================
--- sol2-64.mh (nonexistent)
+++ sol2-64.mh (revision 33)
@@ -0,0 +1,4 @@
+# Host: Solaris x86_64
+NATDEPFILES= fork-child.o amd64-nat.o i386v4-nat.o i386-sol2-nat.o \
+ procfs.o proc-api.o proc-events.o proc-flags.o proc-why.o gcore.o
+NAT_FILE= nm-i386sol2.h
Index: nm-fbsd.h
===================================================================
--- nm-fbsd.h (nonexistent)
+++ nm-fbsd.h (revision 33)
@@ -0,0 +1,53 @@
+/* Native-dependent definitions for FreeBSD/i386.
+
+ Copyright 1986, 1987, 1989, 1992, 1994, 1996, 1997, 2000, 2001, 2004, 2005,
+ 2007, 2008 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 3 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, see . */
+
+#ifndef NM_FBSD_H
+#define NM_FBSD_H
+
+#ifdef HAVE_PT_GETDBREGS
+#define I386_USE_GENERIC_WATCHPOINTS
+#endif
+
+#include "i386/nm-i386.h"
+
+#ifdef HAVE_SYS_PARAM_H
+#include
+#endif
+
+/* Provide access to the i386 hardware debugging registers. */
+
+#define I386_DR_LOW_SET_CONTROL(control) \
+ i386bsd_dr_set_control (control)
+extern void i386bsd_dr_set_control (unsigned long control);
+
+#define I386_DR_LOW_SET_ADDR(regnum, addr) \
+ i386bsd_dr_set_addr (regnum, addr)
+extern void i386bsd_dr_set_addr (int regnum, CORE_ADDR addr);
+
+#define I386_DR_LOW_RESET_ADDR(regnum) \
+ i386bsd_dr_reset_addr (regnum)
+extern void i386bsd_dr_reset_addr (int regnum);
+
+#define I386_DR_LOW_GET_STATUS() \
+ i386bsd_dr_get_status ()
+extern unsigned long i386bsd_dr_get_status (void);
+
+
+#endif /* nm-fbsd.h */
nm-fbsd.h
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: linux64.mh
===================================================================
--- linux64.mh (nonexistent)
+++ linux64.mh (revision 33)
@@ -0,0 +1,9 @@
+# Host: GNU/Linux x86-64
+NATDEPFILES= inf-ptrace.o fork-child.o \
+ i386-nat.o amd64-nat.o amd64-linux-nat.o linux-nat.o \
+ proc-service.o linux-thread-db.o gcore.o linux-fork.o
+NAT_FILE= nm-linux64.h
+
+# The dynamically loaded libthread_db needs access to symbols in the
+# gdb executable.
+LOADLIBES = -ldl -rdynamic
Index: go32.mh
===================================================================
--- go32.mh (nonexistent)
+++ go32.mh (revision 33)
@@ -0,0 +1,11 @@
+# Host: Intel x86 running DJGPP
+MH_CFLAGS=
+
+NAT_FILE= nm-go32.h
+NATDEPFILES= go32-nat.o i386-nat.o
+
+HOST_IPC=
+CC= gcc
+XM_CLIBS= -ldbg
+
+