This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] sh-dsp-gdb, register_sim_regno
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: Michael Snyder <msnyder at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com, ezannoni <ezannoni at sources dot redhat dot com>
- Date: Tue, 15 Jul 2003 15:24:59 -0400
- Subject: Re: [RFA] sh-dsp-gdb, register_sim_regno
- References: <3F0351E2.2080006@redhat.com>
Michael Snyder writes:
> This must have been an oversight -- without it, gdb displays
> the wrong values for the dsp registers.
>
> 2003-07-02 Michael Snyder <msnyder@redhat.com>
>
> * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
> should go thru sh_dsp_register_sim_regno, else the dsp regs
> will not get the right values.
>
Yes, true. Again, I haven't looked at Corinna's patch yet, I hope it
doesn't conflict.
elena
> Index: sh-tdep.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/sh-tdep.c,v
> retrieving revision 1.132
> diff -p -r1.132 sh-tdep.c
> *** sh-tdep.c 13 Jun 2003 04:40:34 -0000 1.132
> --- sh-tdep.c 2 Jul 2003 21:38:54 -0000
> *************** sh_gdbarch_init (struct gdbarch_info inf
> *** 4478,4483 ****
> --- 4502,4508 ----
> tdep->SPC_REGNUM = 42;
> break;
> case bfd_mach_sh3_dsp:
> + set_gdbarch_register_sim_regno (gdbarch, sh_dsp_register_sim_regno);
> sh_register_name = sh_sh3_dsp_register_name;
> sh_show_regs = sh3_dsp_show_regs;
> sh_store_return_value = sh_default_store_return_value;