diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-05-02 23:56:12 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-05-02 23:56:12 +0000 |
commit | 27d94c493022d2df99367343248bd552f17c79a1 (patch) | |
tree | adec6db216e85b526b2db3a812f577b5633e636b /gdb/gdbarch.c | |
parent | dd69d2926038c4272ee9d6f42fc96dbb8fc28c27 (diff) | |
download | gdb-27d94c493022d2df99367343248bd552f17c79a1.zip gdb-27d94c493022d2df99367343248bd552f17c79a1.tar.gz gdb-27d94c493022d2df99367343248bd552f17c79a1.tar.bz2 |
2003-05-02 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
* gdbarch.h, gdbarch.c: Re-generate.
* d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
register_virtual_size, pc_regnum, or register_bytes.
(D10V_PC_REGNUM): Rename _PC_REGNUM.
(d10v_register_type): Use D10V_PC_REGNUM.
(d10v_print_registers_info, d10v_read_pc): Ditto.
(d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
(d10v_unwind_pc, d10v_frame_prev_register): Ditto.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index bda28c7..6ed7d86 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -514,8 +514,6 @@ gdbarch_alloc (const struct gdbarch_info *info, current_gdbarch->sdb_reg_to_regnum = no_op_reg_to_regnum; current_gdbarch->dwarf2_reg_to_regnum = no_op_reg_to_regnum; current_gdbarch->register_name = legacy_register_name; - current_gdbarch->register_size = -1; - current_gdbarch->register_bytes = -1; current_gdbarch->register_byte = generic_register_byte; current_gdbarch->register_raw_size = generic_register_size; current_gdbarch->register_virtual_size = generic_register_size; @@ -643,12 +641,6 @@ verify_gdbarch (struct gdbarch *gdbarch) /* Skip verify of sdb_reg_to_regnum, invalid_p == 0 */ /* Skip verify of dwarf2_reg_to_regnum, invalid_p == 0 */ /* Skip verify of register_name, invalid_p == 0 */ - if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) - && (gdbarch->register_size == -1)) - fprintf_unfiltered (log, "\n\tregister_size"); - if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) - && (gdbarch->register_bytes == -1)) - fprintf_unfiltered (log, "\n\tregister_bytes"); /* Skip verify of register_byte, invalid_p == 0 */ /* Skip verify of register_raw_size, invalid_p == 0 */ /* Skip verify of deprecated_max_register_raw_size, has predicate */ @@ -3286,9 +3278,6 @@ int gdbarch_register_size (struct gdbarch *gdbarch) { gdb_assert (gdbarch != NULL); - if (gdbarch->register_size == -1) - internal_error (__FILE__, __LINE__, - "gdbarch: gdbarch_register_size invalid"); if (gdbarch_debug >= 2) fprintf_unfiltered (gdb_stdlog, "gdbarch_register_size called\n"); return gdbarch->register_size; @@ -3305,9 +3294,6 @@ int gdbarch_register_bytes (struct gdbarch *gdbarch) { gdb_assert (gdbarch != NULL); - if (gdbarch->register_bytes == -1) - internal_error (__FILE__, __LINE__, - "gdbarch: gdbarch_register_bytes invalid"); if (gdbarch_debug >= 2) fprintf_unfiltered (gdb_stdlog, "gdbarch_register_bytes called\n"); return gdbarch->register_bytes; |