aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorRandolph Chung <tausq@debian.org>2004-04-29 03:36:50 +0000
committerRandolph Chung <tausq@debian.org>2004-04-29 03:36:50 +0000
commit50306a9d6e841ab553686e8d5fdff834238ba7f1 (patch)
treec5a0d431e1112649dbdfef0fd871b41857912ce7 /gdb/config
parent2a6228efce9502933c5f9f1ab1e74d90da7466ee (diff)
downloadgdb-50306a9d6e841ab553686e8d5fdff834238ba7f1.zip
gdb-50306a9d6e841ab553686e8d5fdff834238ba7f1.tar.gz
gdb-50306a9d6e841ab553686e8d5fdff834238ba7f1.tar.bz2
2004-04-24 Randolph Chung <tausq@debian.org>
* configure.host (hppa*-*-linux*): New target. * configure.tgt (hppa*-*-linux*): Likewise. * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move gdbarch_init_osabi() call earlier so that osabi-specific frame unwinders can be registered first. * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and hppa-linux-nat.c. * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM) (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers. * config/pa/linux.mh: New file. * config/pa/linux.mt: New file. * config/pa/nm-linux.h: New file. * config/pa/xm-linux.h: New file. * hppa-linux-nat.c: New file. * hppa-linux-tdep.c: New file.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/djgpp/fnchange.lst2
-rw-r--r--gdb/config/pa/linux.mh9
-rw-r--r--gdb/config/pa/linux.mt3
-rw-r--r--gdb/config/pa/nm-linux.h29
-rw-r--r--gdb/config/pa/tm-hppa.h5
-rw-r--r--gdb/config/pa/xm-linux.h31
6 files changed, 79 insertions, 0 deletions
diff --git a/gdb/config/djgpp/fnchange.lst b/gdb/config/djgpp/fnchange.lst
index 1d9e393..4950a63 100644
--- a/gdb/config/djgpp/fnchange.lst
+++ b/gdb/config/djgpp/fnchange.lst
@@ -232,6 +232,8 @@
@V@/gdb/testsuite/gdb.mi/mi2-var-display.exp @V@/gdb/testsuite/gdb.mi/mi2vardisplay.exp
@V@/gdb/amd64-linux-tdep.c @V@/gdb/amd64-ltdep.c
@V@/gdb/amd64-linux-nat.c @V@/gdb/amd64-lnat.c
+@V@/gdb/hppa-linux-tdep.c @V@/gdb/palnxtdep.c
+@V@/gdb/hppa-linux-nat.c @V@/gdb/palnxnat.c
@V@/include/ChangeLog-9103 @V@/include/ChangeLog.9103
@V@/include/coff/ChangeLog-9103 @V@/include/coff/ChangeLog.9103
@V@/include/elf/ChangeLog-9103 @V@/include/elf/ChangeLog.9103
diff --git a/gdb/config/pa/linux.mh b/gdb/config/pa/linux.mh
new file mode 100644
index 0000000..232a4ad
--- /dev/null
+++ b/gdb/config/pa/linux.mh
@@ -0,0 +1,9 @@
+# Host: Hewlett-Packard PA-RISC machine, running Linux
+XDEPFILES=
+XM_FILE= xm-linux.h
+NAT_FILE= nm-linux.h
+NATDEPFILES= infptrace.o inftarg.o fork-child.o corelow.o gcore.o \
+ core-regset.o hppa-linux-nat.o linux-proc.o \
+ proc-service.o thread-db.o lin-lwp.o linux-nat.o
+
+LOADLIBES = -ldl -rdynamic
diff --git a/gdb/config/pa/linux.mt b/gdb/config/pa/linux.mt
new file mode 100644
index 0000000..cb67725
--- /dev/null
+++ b/gdb/config/pa/linux.mt
@@ -0,0 +1,3 @@
+# Target: HP PA-RISC running Linux
+TDEPFILES= hppa-tdep.o hppa-linux-tdep.o glibc-tdep.o solib.o solib-svr4.o
+TM_FILE=tm-hppa.h
diff --git a/gdb/config/pa/nm-linux.h b/gdb/config/pa/nm-linux.h
new file mode 100644
index 0000000..ee88ba7
--- /dev/null
+++ b/gdb/config/pa/nm-linux.h
@@ -0,0 +1,29 @@
+/* Native support for GNU/Linux, for GDB, the GNU debugger.
+ Copyright (C) 2004 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 PA_NM_LINUX_H
+#define PA_NM_LINUX_H
+
+#include "config/nm-linux.h"
+
+#define U_REGS_OFFSET 0
+
+#endif
+
diff --git a/gdb/config/pa/tm-hppa.h b/gdb/config/pa/tm-hppa.h
index a803719..7413684 100644
--- a/gdb/config/pa/tm-hppa.h
+++ b/gdb/config/pa/tm-hppa.h
@@ -52,9 +52,14 @@ extern int hppa_pc_requires_run_before_use (CORE_ADDR pc);
#define PCSQ_TAIL_REGNUM 36 /* instruction space queue tail */
#define EIEM_REGNUM 37 /* External Interrupt Enable Mask */
#define IIR_REGNUM 38 /* Interrupt Instruction Register */
+#define ISR_REGNUM 39 /* Interrupt Space Register */
#define IOR_REGNUM 40 /* Interrupt Offset Register */
#define SR4_REGNUM 43 /* space register 4 */
#define RCR_REGNUM 51 /* Recover Counter (also known as cr0) */
+#define PID0_REGNUM 52 /* Protection ID */
+#define PID1_REGNUM 53 /* Protection ID */
+#define PID2_REGNUM 55 /* Protection ID */
+#define PID3_REGNUM 56 /* Protection ID */
#define CCR_REGNUM 54 /* Coprocessor Configuration Register */
#define TR0_REGNUM 57 /* Temporary Registers (cr24 -> cr31) */
#define CR27_REGNUM 60 /* Base register for thread-local storage, cr27 */
diff --git a/gdb/config/pa/xm-linux.h b/gdb/config/pa/xm-linux.h
new file mode 100644
index 0000000..ceb6ed2
--- /dev/null
+++ b/gdb/config/pa/xm-linux.h
@@ -0,0 +1,31 @@
+/* Host-dependent definitions for the hppa-linux.
+
+ Copyright 2004 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 XM_HPPA_LINUX_H
+#define XM_HPPA_LINUX_H
+
+#include "floatformat.h"
+
+#define HOST_FLOAT_FORMAT &floatformat_ieee_single_big
+#define HOST_DOUBLE_FORMAT &floatformat_ieee_double_big
+#define HOST_LONG_DOUBLE_FORMAT &floatformat_ieee_double_big
+
+#endif /* xm-linux.h */