This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Sparc V9 disassembly?
- To: Raymond Toy <toy at rtp dot ericsson dot se>
- Subject: Re: Sparc V9 disassembly?
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 14 Dec 1999 16:54:23 +1100
- CC: gdb at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <14421.15563.476881.755513@rtp.ericsson.se>
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