summaryrefslogtreecommitdiff
path: root/gdb/vax-tdep.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-04-12 16:49:35 +0000
committerMark Kettenis <kettenis@gnu.org>2004-04-12 16:49:35 +0000
commit5e6b39ffbc68f0cd1a62a3d711833d6b8d6c535f (patch)
treed9297909851d88b4e049dd4c6f6c8c70bc62f347 /gdb/vax-tdep.h
parent296bc76f51b29b5c8bc5e288c4dce21d159e0266 (diff)
* vax-tdep.h: Update copyright year. Adjust comments.
(VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE, VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros. (vax_regnum): New enum. Replacing... (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM) (VAX_PS_REGNUM): ... these removed macros. * vax-tdep.c (vax_register_name): Remove prototype. (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE. (vax_register_byte, vax_register_raw_size, vax_register_virtual_size, vax_register_virtual_type): Remove functions. (vax_register_type): New function. (vax_breakpoint_from_pc): Reorganize. (vax_gdbarch_init): Set register_type. Don't set deprecated_register_size, deprecated_register_bytes, deprecated_register_byte, deprecated_register_raw_size, deprecated_max_register_raw_size, deprecated_register_virtual_size, deprecated_max_register_virtual_size and deprecated_register_virtual_type. Add comment on stack direction.
Diffstat (limited to 'gdb/vax-tdep.h')
-rw-r--r--gdb/vax-tdep.h44
1 files changed, 14 insertions, 30 deletions
diff --git a/gdb/vax-tdep.h b/gdb/vax-tdep.h
index 1a19917740..d27f1a88ed 100644
--- a/gdb/vax-tdep.h
+++ b/gdb/vax-tdep.h
@@ -1,5 +1,6 @@
-/* Common target dependent code for GDB on VAX systems.
- Copyright 2002, 2003 Free Software Foundation, Inc.
+/* Target-dependent code for the VAX.
+
+ Copyright 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of GDB.
@@ -21,35 +22,18 @@
#ifndef VAX_TDEP_H
#define VAX_TDEP_H
-/* Say how long (ordinary) registers are. This is a piece of bogosity
- used in push_word and a few other places; DEPRECATED_REGISTER_RAW_SIZE is the
- real way to know how big a register is. */
-#define VAX_REGISTER_SIZE 4
+/* Register numbers of various important registers. */
+
+enum vax_regnum
+{
+ VAX_AP_REGNUM = 12, /* Argument pointer on user stack. */
+ VAX_FP_REGNUM, /* Address of executing stack frame. */
+ VAX_SP_REGNUM, /* Address of top of stack. */
+ VAX_PC_REGNUM, /* Program counter. */
+ VAX_PS_REGNUM /* Processor status. */
+};
/* Number of machine registers. */
#define VAX_NUM_REGS 17
-/* Total amount of space needed to store our copies of the machine's
- register state. */
-#define VAX_REGISTER_BYTES (VAX_NUM_REGS * 4)
-
-/* Largest value DEPRECATED_REGISTER_RAW_SIZE can have. */
-#define VAX_MAX_REGISTER_RAW_SIZE 4
-
-/* Largest value DEPRECATED_REGISTER_VIRTUAL_SIZE can have. */
-#define VAX_MAX_REGISTER_VIRTUAL_SIZE 4
-
-/* Register numbers of various important registers.
- Note that most of these values are "real" register numbers,
- and correspond to the general registers of the machine,
- and are "phony" register numbers which is too large
- to be an actual register number as far as the user is concerned
- but serves to get the desired value when passed to read_register. */
-
-#define VAX_AP_REGNUM 12 /* argument pointer */
-#define VAX_FP_REGNUM 13 /* Contains address of executing stack frame */
-#define VAX_SP_REGNUM 14 /* Contains address of top of stack */
-#define VAX_PC_REGNUM 15 /* Contains program counter */
-#define VAX_PS_REGNUM 16 /* Contains processor status */
-
-#endif /* VAX_TDEP_H */
+#endif /* vax-tdep.h */