diff options
author | Jason Thorpe <thorpej@netbsd.org> | 2002-06-26 17:20:36 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@netbsd.org> | 2002-06-26 17:20:36 +0000 |
commit | 1d049c5e1d1bbd7805cd3403bab79a69fc38fc43 (patch) | |
tree | 1ed278afbd404e6017149c72e90214f15c04018e /gdb/config/vax | |
parent | 6300c360ea913043e2cf58c45597f60a03df6a13 (diff) | |
download | gdb-1d049c5e1d1bbd7805cd3403bab79a69fc38fc43.zip gdb-1d049c5e1d1bbd7805cd3403bab79a69fc38fc43.tar.gz gdb-1d049c5e1d1bbd7805cd3403bab79a69fc38fc43.tar.bz2 |
* config/vax/tm-vax.h (BREAKPOINT): Remove.
(BELIEVE_PCC_PROMOTION): Remove.
(AP_REGNUM): Move to...
* config/vax/nm-vax.h: ...here.
* vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
(vax_breakpoint_from_pc): New function.
(vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
and gdbarch_believe_pcc_promotion.
Diffstat (limited to 'gdb/config/vax')
-rw-r--r-- | gdb/config/vax/nm-vax.h | 2 | ||||
-rw-r--r-- | gdb/config/vax/tm-vax.h | 8 |
2 files changed, 2 insertions, 8 deletions
diff --git a/gdb/config/vax/nm-vax.h b/gdb/config/vax/nm-vax.h index c2baef1..efebd6b 100644 --- a/gdb/config/vax/nm-vax.h +++ b/gdb/config/vax/nm-vax.h @@ -18,6 +18,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#define AP_REGNUM 12 /* XXXJRT */ + #define REGISTER_U_ADDR(addr, blockend, regno) \ { addr = blockend - 0110 + regno * 4; \ if (regno == PC_REGNUM) addr = blockend - 8; \ diff --git a/gdb/config/vax/tm-vax.h b/gdb/config/vax/tm-vax.h index 204d155..8d77a29 100644 --- a/gdb/config/vax/tm-vax.h +++ b/gdb/config/vax/tm-vax.h @@ -31,11 +31,6 @@ #define SIGTRAMP_START(pc) STACK_END_ADDR #define SIGTRAMP_END(pc) 0x80000000 -/* Sequence of bytes for breakpoint instruction. */ -#define BREAKPOINT {3} - -#define AP_REGNUM 12 /* XXXJRT */ - /* Offset to saved PC in sigcontext, from <sys/signal.h>. */ /* XXXJRT should go away */ #define SIGCONTEXT_PC_OFFSET 12 @@ -43,6 +38,3 @@ /* XXXJRT not yet under gdbarch control */ #define FRAME_ARGS_ADDRESS_CORRECT(fi) vax_frame_args_address_correct ((fi)) extern CORE_ADDR vax_frame_args_address_correct (struct frame_info *); - -/* If vax pcc says CHAR or SHORT, it provides the correct address. */ -#define BELIEVE_PCC_PROMOTION 1 |