Duplicate 0x prefix - cr16 - bug. no. 10173

Alan Modra amodra@gmail.com
Mon Jan 16 23:52:00 GMT 2012


On Mon, Dec 26, 2011 at 05:11:29PM +0000, James Murray wrote:
> Regarding:
> http://sourceware.org/bugzilla/show_bug.cgi?id=10173
> 
> The fix for the duplicate 0x prefix on numbers during disassembly was:
> 
> --- src/opcodes/cr16-dis.c 2008/11/27 11:30:33 1.5
> +++ src/opcodes/cr16-dis.c 2009/06/15 15:24:52 1.6
> @@ -678,7 +678,9 @@
> +      /* PR 10173: Avoid printing the 0x prefix twice.  */
> +      if (info->num_symbols > 0)
> +	func (stream, "%s", "0x");
> 
> 
> I'm wondering if that might be better as
> +      if (info->symtab_size > 0)

Applied.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list