aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-01-16 23:51:35 +0000
committerAlan Modra <amodra@gmail.com>2012-01-16 23:51:35 +0000
commite20cc039b4763640eea37835d7d023fe6701a4d0 (patch)
tree0875eb8d5097e328c2d9b0d28b1d9229e533ee2b
parente143d25c7376b5c422ac3fac8d8d260c54487450 (diff)
downloadgdb-e20cc039b4763640eea37835d7d023fe6701a4d0.zip
gdb-e20cc039b4763640eea37835d7d023fe6701a4d0.tar.gz
gdb-e20cc039b4763640eea37835d7d023fe6701a4d0.tar.bz2
PR binutils/10173
* cr16-dis.c (print_arg): Test symtab_size not num_symbols.
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/cr16-dis.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 48612d5..e3a35b6 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -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
diff --git a/opcodes/cr16-dis.c b/opcodes/cr16-dis.c
index 0aaf61c..1fc8c2b 100644
--- a/opcodes/cr16-dis.c
+++ b/opcodes/cr16-dis.c
@@ -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));