Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/gdb/config/arm Grabbed from gnu/gdb/confi...



details:   https://anonhg.NetBSD.org/src/rev/3609752e8a47
branches:  trunk
changeset: 512725:3609752e8a47
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Jul 15 05:32:31 2001 +0000

description:
Grabbed from gnu/gdb/config/arm.  Slightly tweaked for ELF.

diffstat:

 gnu/dist/toolchain/gdb/config/arm/nbsd.mh   |   5 ++
 gnu/dist/toolchain/gdb/config/arm/nbsd.mt   |   3 +
 gnu/dist/toolchain/gdb/config/arm/nm-nbsd.h |  32 ++++++++++++++++++
 gnu/dist/toolchain/gdb/config/arm/tm-nbsd.h |  49 +++++++++++++++++++++++++++++
 gnu/dist/toolchain/gdb/config/arm/xm-nbsd.h |  21 ++++++++++++
 5 files changed, 110 insertions(+), 0 deletions(-)

diffs (130 lines):

diff -r f7c63dc794d9 -r 3609752e8a47 gnu/dist/toolchain/gdb/config/arm/nbsd.mh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/dist/toolchain/gdb/config/arm/nbsd.mh Sun Jul 15 05:32:31 2001 +0000
@@ -0,0 +1,5 @@
+# Host: ARM running NetBSD
+XDEPFILES= 
+NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o armb-nat.o arm-convert.o
+XM_FILE= xm-nbsd.h
+NAT_FILE= nm-nbsd.h
diff -r f7c63dc794d9 -r 3609752e8a47 gnu/dist/toolchain/gdb/config/arm/nbsd.mt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/dist/toolchain/gdb/config/arm/nbsd.mt Sun Jul 15 05:32:31 2001 +0000
@@ -0,0 +1,3 @@
+# Target: ARM running NetBSD
+TDEPFILES= arm-tdep.o solib.o
+TM_FILE= tm-nbsd.h
diff -r f7c63dc794d9 -r 3609752e8a47 gnu/dist/toolchain/gdb/config/arm/nm-nbsd.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/dist/toolchain/gdb/config/arm/nm-nbsd.h       Sun Jul 15 05:32:31 2001 +0000
@@ -0,0 +1,32 @@
+/* Native-dependent definitions for Intel 386 running NetBSD, for GDB.
+   Copyright 1986, 1987, 1989, 1992, 1994 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.  */
+
+#ifndef NM_NBSD_H
+#define NM_NBSD_H
+
+#ifdef __ELF__
+#define        SVR4_SHARED_LIBS
+#endif
+
+/* Get generic NetBSD native definitions. */
+#include "nm-nbsd.h"
+
+/* #define FLOAT_INFO  { arm_float_info(); } */
+
+#endif /* NM_NBSD_H */
diff -r f7c63dc794d9 -r 3609752e8a47 gnu/dist/toolchain/gdb/config/arm/tm-nbsd.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/dist/toolchain/gdb/config/arm/tm-nbsd.h       Sun Jul 15 05:32:31 2001 +0000
@@ -0,0 +1,49 @@
+/* Macro definitions for i386 running under NetBSD.
+   Copyright 1994 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.  */
+
+#ifndef TM_NBSD_H
+#define TM_NBSD_H
+
+#include "arm/tm-arm.h"
+#include "tm-nbsd.h"
+#include <machine/setjmp.h>   /* for JMPBUF_REG_R14 definition */
+
+/* On NetBSD, sigtramp is above the user stack and immediately below
+   the user area. Using constants here allows for cross debugging. */
+#define SIGTRAMP_START(pc)     0xefbfdfc0
+#define SIGTRAMP_END(pc)       0xefbfe000      /* USRSTACK */
+   
+/* Saved Pc.  Get it from sigcontext if within sigtramp.  */
+/* Offset to saved PC in sigcontext, from <sys/signal.h>.  */
+#define SIGCONTEXT_PC_OFFSET 20        /* XXX - check this */
+
+#define JB_ELEMENT_SIZE sizeof(int)    /* jmp_buf[_JBLEN] is array of ints */
+#define JB_PC  _JB_REG_R14             /* Setjmp()'s return PC saved here */
+
+/* Figure out where the longjmp will land.  Slurp the args out of the stack.
+   We expect the first arg to be a pointer to the jmp_buf structure from which
+   we extract the pc (JB_PC) that we will land at.  The pc is copied into ADDR.
+   This routine returns true on success */
+
+extern int
+get_longjmp_target PARAMS ((CORE_ADDR *));
+
+#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
+
+#endif /* TM_NBSD_H */
diff -r f7c63dc794d9 -r 3609752e8a47 gnu/dist/toolchain/gdb/config/arm/xm-nbsd.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/dist/toolchain/gdb/config/arm/xm-nbsd.h       Sun Jul 15 05:32:31 2001 +0000
@@ -0,0 +1,21 @@
+/* Parameters for execution on a i386 running NetBSD, for GDB.
+   Copyright 1994 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.  */
+
+/* Get generic NetBSD host definitions. */
+#include "xm-nbsd.h"



Home | Main Index | Thread Index | Old Index