This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


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