This is the mail archive of the gdb@sourceware.org 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] | |
Well, the ppc64 situation was a real mess, because the GCC people screwed up, and used *their* internal mapping instead of the officially documented numbers defined in the ELF ABI for DWARF2, and this mapping was also used for GCC's exception handling info (which is based on DWARF2). I'm not sure at all whether the issue has been resolved.
For hppa64 the situation is much better since...
Any comments or suggestions on how to sort this out? Should I just change gdb to match what gcc outputs? Should we change gcc to match what gdb expects? (safer?)
...we (GDB) are the ones that screwed up. Fortunately it's really easy to fix things. We just need to provide the appropriate xxx_reg_to_regnum functions in the acrhitecture vector.
Actually the fix seems to be partly implemented already: there's a
#ifdeffed out hppa_dwarf_reg_to_regnum in hppa-linux-tdep.c. I think
it should be moved to hppa-tdep.c, and a 64-bit version should be
created.
registers are mapped differently for several debugging formats and executable formats.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |