diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-07-24 20:39:21 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-07-24 20:39:21 +0000 |
commit | 53116e27b6d56500499d94c66002ad7258e4b1ef (patch) | |
tree | c54c58f719d3fb8f9ec14dba199526e511c76499 /gdb/config | |
parent | e8865c28116faf8cd4712c0645ba081f0ec3aab9 (diff) | |
download | gdb-53116e27b6d56500499d94c66002ad7258e4b1ef.zip gdb-53116e27b6d56500499d94c66002ad7258e4b1ef.tar.gz gdb-53116e27b6d56500499d94c66002ad7258e4b1ef.tar.bz2 |
2000-07-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* config/sh/tm-sh.h (struct gdbarch_tdep): Add sh4 specific
pseudo registers.
(DO_REGISTERS_INFO): Define.
* sh-tdep.c (sh_sh4_register_name): New function.
(sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update
signature.
(sh_show_regs_command): New function. Actual function called by
the 'regs' command.
(sh_register_byte): Rename to...
(sh_default_register_byte): ...New function.
(sh_sh4_register_byte): New function.
(sh_register_raw_size): Rename to...
(sh_default_register_raw_size): ...New function.
(sh_sh4_register_raw_size): New function.
(sh_sh4_register_virtual_type): New function.
(sh_sh4_build_float_register_type): New function.
(sh_fetch_pseudo_register, sh_store_pseudo_register): New
functions.
(fv_reg_base_num, dr_reg_base_num): New functions.
(do_fv_register_info, do_dr_register_info, sh_do_pseudo_register,
sh_do_fp_register, sh_do_register, sh_print_register,
sh_do_registers_info): New functions.
(sh_gdbarch_init): Initialize sh4 pseudo registers to -1. Update
architecture specific parts.
(_initialize_sh_tdep): Use sh_show_regs_command for 'regs' command.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/sh/tm-sh.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/gdb/config/sh/tm-sh.h b/gdb/config/sh/tm-sh.h index d7438fe..6755587 100644 --- a/gdb/config/sh/tm-sh.h +++ b/gdb/config/sh/tm-sh.h @@ -1,5 +1,5 @@ /* Target-specific definition for a Hitachi Super-H. - Copyright (C) 1993 Free Software Foundation, Inc. + Copyright (C) 1993, 2000 Free Software Foundation, Inc. This file is part of GDB. @@ -44,6 +44,18 @@ struct gdbarch_tdep int SPC_REGNUM; /* sh3, sh3-dsp, sh3e, sh4 */ int RS_REGNUM; /* sh-dsp, sh3-dsp */ int RE_REGNUM; /* sh-dsp, sh3-dsp */ + int DR0_REGNUM; + int DR1_REGNUM; + int DR2_REGNUM; + int DR3_REGNUM; + int DR4_REGNUM; + int DR5_REGNUM; + int DR6_REGNUM; + int DR7_REGNUM; + int FV0_REGNUM; + int FV1_REGNUM; + int FV2_REGNUM; + int FV3_REGNUM; }; /* Registers common to all the SH variants. */ @@ -61,6 +73,12 @@ enum SR_REGNUM = 22 }; +/* Define DO_REGISTERS_INFO() to do machine-specific formatting + of register dumps. */ +extern void sh_do_registers_info (int regnum, int fpregs); +#undef DO_REGISTERS_INFO +#define DO_REGISTERS_INFO(REGNUM, FP) sh_do_registers_info(REGNUM, FP) + #define NUM_REALREGS 59 /* used in remote-e7000.c which is not multiarched. */ #define REGISTER_TYPE long /* used in standalone.c */ |