This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Sparc V9 disassembly?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]