This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] h8300-tdep.c: Some more code to support H8SX
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 12 Jun 2003 15:34:20 +0200
- Subject: Re: [RFA] h8300-tdep.c: Some more code to support H8SX
- References: <20030611131740.GE30116@cygbert.vinschen.de>
- Reply-to: gdb-patches at sources dot redhat dot com
On Wed, Jun 11, 2003 at 03:17:40PM +0200, Corinna Vinschen wrote:
> the following patch adds some more code to support the H8SX cpu.
> It's just framework, the changes in the prologue scanning are still
> under construction.
>
> * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
> substitute by NUM_REGS throughout.
> (h8300_register_name): Only care for H8/300 and H8/300H registers.
> (h8300s_register_name): New function for H8S registers.
> (h8300sx_register_name): Ditto for H8SX registers.
> (h8300_print_register): Revise register printing, avoid depending
> on 32 bit long.
> (h8300_register_byte); Only care for H8/300 registers.
> (h8300h_register_byte): New function for any other architecture.
> (h8300_register_raw_size): Remove.
> (h8300_register_virtual_type): Revise to return actually useful
> type.
> (h8300_extract_struct_value_address): Only care for H8/300 registers.
> (h8300h_extract_struct_value_address): New function for any other
> architecture.
> (h8300_gdbarch_init): Call set_gdbarch_num_regs,
> set_gdbarch_register_name, set_gdbarch_register_byte,
> set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
> Remove calls to set_gdbarch_deprecated_register_size,
> set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
> set_gdbarch_deprecated_max_register_raw_size,
> set_gdbarch_register_virtual_size and
> set_gdbarch_deprecated_max_register_virtual_size entirely.
I've applied this patch with some minor additional tweaks. E. g. I forgot
to add the h8300sxn machine type.
Corinna
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com