This is the mail archive of the gdb-patches@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] |
This adds an alphabsd-tdep.c which provides the register supply/fill stuff for all Alpha BSD targets. This will facilitate cross-debugging of core files. David/Mark -- I'd like to get a nod from one of you before I commit it, since it does affect FreeBSD/alpha support. I did build an alpha-freebsd GDB, and it compiles fine. After that, the code path is pretty much the same for alpha-netbsd, which I obviously tested :-) * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c. (alphabsd-nat.o): Depend on alphabsd-tdep.h. (alphanbsd-nat.o): Likewise. (alphabsd-tdep.o): New dependency list. * alphabsd-nat.c (supply_gregset): Use alpha_bsd_supply_register. (fill_gregset): Use alpha_bsd_fill_register. (supply_fpregset): Use alpha_bsd_supply_fpregister. (fill_fpregset): Use alpha_bsd_fill_fpregister. (fetch_inferior_registers): Use struct reg and struct fpreg rather than gregset_t and fpregset_t. Use alpha_bsd_supply_register and alpha_bsd_supply_fpregister. (store_inferior_registers): Use struct reg and struct fpreg rather than gregset_t and fpregset_t. Use alpha_bsd_fill_register and alpha_bsd_fill_fpregister. * alphabsd-tdep.c: New file. * alphabsd-tdep.h: New file. * alphanbsd-nat.c (fetch_core_registers): Use alpha_bsd_supply_fpregister. (fetch_elfcore_registers): Use alpha_bsd_supply_register and alpha_bsd_supply_fpregister. * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o. * config/alpha/nbsd.mt (TDEPFILES): Likewise. -- -- Jason R. Thorpe <thorpej@wasabisystems.com>
Attachment:
alphabsd-tdep-patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |