Adding dwarf2 regnum mapping

Michal Ludvig mludvig@suse.cz
Tue Apr 30 03:01:00 GMT 2002


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



More information about the Gdb mailing list