This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Adding dwarf2 regnum mapping


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]