[patch] mips-tdep: info registers
Aleksandar Ristovski
aristovski@qnx.com
Thu Feb 12 16:24:00 GMT 2009
Hello,
This is applicable to mips targets.
When using info registers $N command, gdb_assert will be
triggered if N falls in the raw register number area.
However, this is counter-intuitive.
The change simply maps raw-register number to pseudo
register number and continues as before.
-------------------------------------
Example: current situation
(gdb) info registers $1
../../gdb/mips-tdep.c:4307: internal-error:
mips_print_registers_info:
Assertion `regnum >= gdbarch_num_regs (current_gdbarch)'
failed.
Example: with the patch
(gdb) info registers $1
at: 0x8020000
--------------------------------------
Thanks,
Aleksandar Ristovski
QNX Software Systems
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mips-tdep.c-info-registers-20090212.diff.ChangeLog
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20090212/7b5b2302/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips-tdep.c-info-registers-20090212.diff
Type: text/x-patch
Size: 743 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20090212/7b5b2302/attachment.bin>
More information about the Gdb-patches
mailing list