use MIPS NewABI register names when disassembling NewABI code

Alexandre Oliva aoliva@redhat.com
Fri Apr 11 05:43:00 GMT 2003


On Apr  9, 2003, Andrew Cagney <ac131313@redhat.com> wrote:

> An architecture can't point at anything tied to the lifetime of an
> instance of a BFD.

tm_print_insn_info doesn't seem to be very tied to a gdbarch, anyway.
To wit, note the bug fix in this revised patch.  Explicitly setting
the ABI to a non-default one, then back, then the non-default one
again, would result the wrong tm_print_insn_info settings.  This works
now, and also disassembles in accordance with gdb's notion of the
current ABI.  Assuming tm_print_insn_info is actually the right thing
to use, of course.  Ok to install?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips-gdb-abi-disassemble.patch
Type: text/x-patch
Size: 4930 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030411/4eca6bea/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


More information about the Gdb-patches mailing list