aboutsummaryrefslogtreecommitdiff
path: root/gdb/nlm/alpha.h
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1994-08-18 06:32:55 +0000
committerStu Grossman <grossman@cygnus>1994-08-18 06:32:55 +0000
commitb7da24943dbe07851c083336f4c352e6e2e41d74 (patch)
treea4e317f709103fd5840b842e74f8a6aee753e05d /gdb/nlm/alpha.h
parent8c074d7ada27e4eecda9fa92c79e5bc5cf23f77b (diff)
downloadgdb-b7da24943dbe07851c083336f4c352e6e2e41d74.zip
gdb-b7da24943dbe07851c083336f4c352e6e2e41d74.tar.gz
gdb-b7da24943dbe07851c083336f4c352e6e2e41d74.tar.bz2
* Makefile.in (TARGET_FLAGS_TO_PASS): Pass down LD_FOR_TARGET and
NLMCONV_FOR_TARGET. (SUBDIRS): Add nlm target. * configure.in (powerpc-*-netware*): Automatically configure nlm subdir. * nlm/Makefile.in: Add {CC NLMCONV LD}_FOR_TARGET. Remove alpha specific stuff. Make things more configurable. * nlm/configure.in: Add powerpc-*-netware* target. Use gdbserve.mt/cpu.c/cpu.h for target stuff. Get rid of tm/xm/nm.h files. * nlm/gdbserve.c: Move Alpha specific stuff into other files. Remove lots of architecture-specific stuff. * nlm/gdbserve.def: Add new imports. * nlm/ppc.c, nlm/ppc.h: New files that contain PowerPC specific code. * nlm/prelude.c: Don't include libhooks.h, get rid of call to register library. * nlm/prelude.o: What was this doing here?
Diffstat (limited to 'gdb/nlm/alpha.h')
-rw-r--r--gdb/nlm/alpha.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/gdb/nlm/alpha.h b/gdb/nlm/alpha.h
new file mode 100644
index 0000000..8fc7ab1
--- /dev/null
+++ b/gdb/nlm/alpha.h
@@ -0,0 +1,19 @@
+#include "alpha-patch.h"
+
+/* Register values. All of these values *MUST* agree with tm.h */
+#define RA_REGNUM 26 /* Contains return address value */
+#define SP_REGNUM 30 /* Contains address of top of stack */
+#define PC_REGNUM 64 /* Contains program counter */
+#define FP_REGNUM 65 /* Virtual frame pointer */
+#define V0_REGNUM 0 /* Function integer return value */
+#define NUM_REGS 66 /* Number of machine registers */
+#define REGISTER_BYTES (NUM_REGS * 8) /* Total size of registers array */
+
+#define ExceptionPC ExceptionRegs[SF_REG_PC].lo
+#define DECR_PC_AFTER_BREAK 0 /* NT's Palcode gets this right! */
+#define BREAKPOINT {0x80, 0, 0, 0} /* call_pal bpt */
+unsigned char breakpoint_insn;
+#define BREAKPOINT_SIZE 4
+
+/*#define flush_i_cache() asm("call_pal 0x86")*/
+