* Makefile.in (vax_tdep_h): Define.

(vax-tdep.o): Use $(vax_tdep_h).
* vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
(vax_dump_tdep): New function.
(_initialize_vax_tdep): Register vax_dump_tdep.
* vax-tdep.h: Include osabi.h.
(struct gdbarch_tdep): New.
This commit is contained in:
Jason Thorpe
2002-06-26 16:07:16 +00:00
parent 164c405440
commit 4791e09145
4 changed files with 57 additions and 6 deletions

View File

@@ -21,6 +21,8 @@
#ifndef VAX_TDEP_H
#define VAX_TDEP_H
#include "osabi.h"
/* Say how long (ordinary) registers are. This is a piece of bogosity
used in push_word and a few other places; REGISTER_RAW_SIZE is the
real way to know how big a register is. */
@@ -52,4 +54,10 @@
#define VAX_PC_REGNUM 15 /* Contains program counter */
#define VAX_PS_REGNUM 16 /* Contains processor status */
/* Target-dependent structure in gdbarch. */
struct gdbarch_tdep
{
enum gdb_osabi osabi; /* OS/ABI of inferior. */
};
#endif /* VAX_TDEP_H */