1ba53b71ca
gdb/ 2010-03-02 H.J. Lu <hongjiu.lu@intel.com> * amd64-tdep.c (amd64_byte_names): New. (amd64_word_names): Likewise. (amd64_dword_names): Likewise. (amd64_pseudo_register_name): Likewise. (amd64_pseudo_register_read): Likewise. (amd64_pseudo_register_write): Likewise. (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs and num_mmx_regs. Call set_gdbarch_pseudo_register_read, set_gdbarch_pseudo_register_write and set_tdesc_pseudo_register_name. Don't call set_gdbarch_num_pseudo_regs. Don't set mm0_regnum. * i386-tdep.c (i386_num_mmx_regs): Removed. (i386_num_pseudo_regs): Likewise. (i386_byte_names): New. (i386_word_names): Likewise. (i386_byte_regnum_p): Likewise. (i386_word_regnum_p): Likewise. (i386_mmx_regnum_p): Updated. (i386_pseudo_register_name): Make it global. Handle byte and word pseudo-registers. (i386_pseudo_register_read): Likewise. (i386_pseudo_register_write): Likewise. (i386_pseudo_register_type): Handle byte, word and dword pseudo-registers (i386_register_reggroup_p): Don't include pseudo registers, except for MXX, in any register groups. Don't include pseudo byte, word, dword registers in general_reggroup. (i386_gdbarch_init): Set num_byte_regs, num_word_regs, num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX pseudo-registers after word pseudo-registers. Call set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi. * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs, al_regnum, num_word_regs, ax_regnum, num_dword_regs and eax_regnum. (i386_byte_regnum_p): New. (i386_word_regnum_p): Likewise. (i386_dword_regnum_p): Likewise. (i386_pseudo_register_name): Likewise. (i386_pseudo_register_read): Likewise. (i386_pseudo_register_write): Likewise. gdb/testsuite/ 2010-03-02 H.J. Lu <hongjiu.lu@intel.com> * gdb.arch/amd64-byte.exp: New. * gdb.arch/amd64-dword.exp: Likewise. * gdb.arch/amd64-pseudo.c: Likewise. * gdb.arch/amd64-word.exp: Likewise. * gdb.arch/i386-byte.exp: Likewise. * gdb.arch/i386-pseudo.c: Likewise. * gdb.arch/i386-word.exp: Likewise. |
||
---|---|---|
.. | ||
alpha-step.c | ||
alpha-step.exp | ||
altivec-abi.c | ||
altivec-abi.exp | ||
altivec-regs.c | ||
altivec-regs.exp | ||
amd64-byte.exp | ||
amd64-disp-step.exp | ||
amd64-disp-step.S | ||
amd64-dword.exp | ||
amd64-i386-address.exp | ||
amd64-i386-address.S | ||
amd64-pseudo.c | ||
amd64-word.exp | ||
e500-abi.c | ||
e500-abi.exp | ||
e500-prologue.c | ||
e500-prologue.exp | ||
e500-regs.c | ||
e500-regs.exp | ||
gdb1291.exp | ||
gdb1291.s | ||
gdb1431.exp | ||
gdb1431.s | ||
gdb1558.c | ||
gdb1558.exp | ||
i386-bp_permanent.exp | ||
i386-byte.exp | ||
i386-cpuid.h | ||
i386-disp-step.exp | ||
i386-disp-step.S | ||
i386-gnu-cfi-asm.S | ||
i386-gnu-cfi.c | ||
i386-gnu-cfi.exp | ||
i386-permbkpt.exp | ||
i386-permbkpt.S | ||
i386-prologue.c | ||
i386-prologue.exp | ||
i386-pseudo.c | ||
i386-signal.c | ||
i386-signal.exp | ||
i386-size-overlap.c | ||
i386-size-overlap.exp | ||
i386-size.c | ||
i386-size.exp | ||
i386-sse.c | ||
i386-sse.exp | ||
i386-unwind.c | ||
i386-unwind.exp | ||
i386-word.exp | ||
ia64-breakpoint-shadow.exp | ||
ia64-breakpoint-shadow.S | ||
iwmmxt-regs.c | ||
iwmmxt-regs.exp | ||
Makefile.in | ||
pa-nullify.exp | ||
pa-nullify.s | ||
pa64-nullify.s | ||
powerpc-aix-prologue.c | ||
powerpc-aix-prologue.exp | ||
powerpc-d128-regs.c | ||
powerpc-d128-regs.exp | ||
powerpc-prologue.c | ||
powerpc-prologue.exp | ||
ppc-dfp.c | ||
ppc-dfp.exp | ||
ppc-fp.c | ||
ppc-fp.exp | ||
ppc64-atomic-inst.c | ||
ppc64-atomic-inst.exp | ||
spu-info.c | ||
spu-info.exp | ||
thumb-prologue.c | ||
thumb-prologue.exp | ||
thumb2-it.exp | ||
thumb2-it.S | ||
vsx-regs.c | ||
vsx-regs.exp |