This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Problems with MIPS disassembly and 'rdhwr' instruction...
- From: "Steven J. Hill" <sjhill at realitydiluted dot com>
- To: gdb at sources dot redhat dot com
- Date: Mon, 29 Aug 2005 07:12:56 -0500
- Subject: Problems with MIPS disassembly and 'rdhwr' instruction...
Greetings.
I am trying to figure out how to get 'rdhwr' instructions to be
printed when doing a disassembly in gdb on MIPS binaries. My
binaries are not compiled as mips32r2, but as mips1. This is
allowable, but it appears that gdb in 'print_insn_mips' will not
decoded the 'rdhwr' the instruction because it is a mips1 binary?
I have spent a couple of hours trying to figure out the hashing
that is done in that function as well as hacking the loop and I
have come up with nothing. Can someone help me understand the
hashing better and suggest a method/patch to allow me to get the
'rdhwrd' instructions to print instead of the hex opcode? Thanks.
-Steve