2006-10-20 Andrew Stubbs <andrew.stubbs@st.com>

opcodes/

	* sh-dis.c (print_insn_sh): Remove 0x from output to prevent GDB
	duplicating it.

gas/testsuite/

	* gas/sh/pcrel-coff.d: Update patterns (remove 0x on addresses).
	* gas/sh/pcrel-hms.d: Likewise.
	* gas/sh/pcrel.d: Likewise.
	* gas/sh/pcrel2.d: Likewise.
	* gas/sh/pic.d: Likewise.
	* gas/sh/tlsd.d: Likewise.
	* gas/sh/tlsdnopic.d: Likewise.
	* gas/sh/tlsdpic.d: Likewise.
This commit is contained in:
Andrew Stubbs
2006-10-20 14:47:05 +00:00
parent f6f62d6fe6
commit f3b8f6287b
11 changed files with 48 additions and 32 deletions

View File

@@ -924,11 +924,11 @@ print_insn_sh (bfd_vma memaddr, struct disassemble_info *info)
}
if ((*info->symbol_at_address_func) (val, info))
{
fprintf_fn (stream, "\t! 0x");
fprintf_fn (stream, "\t! ");
(*info->print_address_func) (val, info);
}
else
fprintf_fn (stream, "\t! 0x%x", val);
fprintf_fn (stream, "\t! %x", val);
}
}