This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Adding dwarf2 regnum mapping
- From: Michal Ludvig <mludvig at suse dot cz>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 30 Apr 2002 12:00:50 +0200
- Subject: Re: Adding dwarf2 regnum mapping
- Organization: SuSE CR
- References: <3CCD899D.3020903@suse.cz> <20020429144310.A3651@nevyn.them.org>
Daniel Jacobowitz wrote:
> mn10300-tdep.c: set_gdbarch_dwarf2_reg_to_regnum (gdbarch, mn10300_dwarf2_reg_to_regnum);
> s390-tdep.c: set_gdbarch_dwarf2_reg_to_regnum (gdbarch, s390_stab_reg_to_regnum);
>
> Do it just like either of those; set it in i386_gdbarch_init.
My fault, of course. I tried this, but by mistake I used
gdbarch_dwarf_reg... instead of gdbarch_dwarf2_reg... and was wondering
why it doesn't work. So I finally asked here for the trick. Of course if
I use the _right_ set function it works :-)
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* +420 2 9654 5373 * http://www.suse.cz