PR binutils/10173
authorAlan Modra <amodra@gmail.com>
Mon, 16 Jan 2012 23:51:35 +0000 (23:51 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 16 Jan 2012 23:51:35 +0000 (23:51 +0000)
* cr16-dis.c (print_arg): Test symtab_size not num_symbols.

opcodes/ChangeLog
opcodes/cr16-dis.c

index 48612d5bf20e9f0b9abf4b41beea39145168958b..e3a35b6b72de8a9cef04b99c8da7d65f9be79b67 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-17  James Murray  <jsm@jsm-net.demon.co.uk>
+
+       PR binutils/10173
+       * cr16-dis.c (print_arg): Test symtab_size not num_symbols.
+
 2012-01-17  Andreas Schwab  <schwab@linux-m68k.org>
 
        * m68k-opc.c (m68k_opcodes): Fix entries for pmove with BADx/BACx
index 0aaf61c3276a85fc5149f915d51c6a51ad2c1911..1fc8c2b7a6333bc0e57da213320e453b4a9c8d91 100644 (file)
@@ -1,5 +1,5 @@
 /* Disassembler code for CR16.
-   Copyright 2007, 2008, 2009  Free Software Foundation, Inc.
+   Copyright 2007, 2008, 2009, 2012  Free Software Foundation, Inc.
    Contributed by M R Swami Reddy (MR.Swami.Reddy@nsc.com).
 
    This file is part of GAS, GDB and the GNU binutils.
@@ -679,7 +679,7 @@ print_arg (argument *a, bfd_vma memaddr, struct disassemble_info *info)
        (sign_flag) ? func (stream, "%s", "*-"): func (stream, "%s","*+");
 
       /* PR 10173: Avoid printing the 0x prefix twice.  */
-      if (info->num_symbols > 0)
+      if (info->symtab_size > 0)
        func (stream, "%s", "0x");
       number = ((relative ? memaddr : 0) +
                (sign_flag ? ((- a->constant) & 0xffffffe) : a->constant));
This page took 0.030389 seconds and 4 git commands to generate.