This is the mail archive of the gdb-patches@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] |
Hi! There are issues with sh-tdep's regs command (ÂPrint all registersÂ): (gdb) regs PC 295568c0 SR 00008000 PR 00000000 MACH 00000000 Register 19 is not available (After PC, SR, PR, MACH, this should print the values of the GBR, VBR (this is register 19), MACL, then R0..R15.) Evidently this code is not prepared to cope with frame_unwind_register raising NOT_AVAILABLE_ERROR. Now, the question is, why does the regs command exist at all? It's been present since the very first revision of sh-tdep.c, but as far as I can tell, Âinfo registersÂ/Âinfo all-registers can display all the register information just fine, for example: (gdb) info all-registers r0 0x0 0 [...] r15 0x7bab5c60 2074827872 pc 0x295568c0 693463232 pr 0x0 0 gbr 0x29690678 694748792 vbr *value not available* mach 0x0 0 macl 0x0 0 sr 0x8000 32768 I therefore propose to remove sh_show_regs_command et al. from sh-tdep.c. If nobody objects, can it just go silently, or should invoking it then cause an error message, like ÂPlease use the Âinfo all-registers command instead of ÂregsÂ.Â? GrÃÃe, Thomas
Attachment:
pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |