Sparc V9 disassembly?
Andrew Cagney
ac131313@cygnus.com
Mon Dec 13 21:55:00 GMT 1999
Raymond Toy wrote:
>
> I've just joined this list so if this question has been asked, forgive
> me. I looked at the recent mailing list archives and didn't see
> anything obvious.
>
> I'm trying to debug some Sparc v9 code and gdb's disassembler doesn't
> want to print out the new v9 instructions. Before trying the
> disassembly, I gave the following commands to gdb (version 4.18):
>
> info archi
> set archi sparc:v9a
> disassemble <addr1> <addr2>
>
> It seems the bug is in gdb_print_insn_sparc. It sets info->mach to
> TM_PRINT_INSN_MACH, which is the sparc/sparclite. If I use gdb to
> change this to 8 (sparc v9?), the disassembler recognizes the v9
> instructions.
>
> Is this correct behavior?
I'd try it with the current GDB however, I suspect that SPARC GDB
currently ignores requests to change the architecture via ``set
architecture''.
Andrew
More information about the Gdb
mailing list