diff options
author | Alan Modra <amodra@bigpond.net.au> | 2012-01-16 23:51:35 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2012-01-16 23:51:35 +0000 |
commit | fa425c1bdbb948842056c9f7a0df31851981d6ed (patch) | |
tree | b1609039ba04b27e077bd611059fff4d462774b0 /opcodes/cr16-dis.c | |
parent | 4edbd020aee026166ad16889d158b5b78dbf4a77 (diff) | |
download | binutils-redhat-fa425c1bdbb948842056c9f7a0df31851981d6ed.tar.gz |
PR binutils/10173
* cr16-dis.c (print_arg): Test symtab_size not num_symbols.
Diffstat (limited to 'opcodes/cr16-dis.c')
-rw-r--r-- | opcodes/cr16-dis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/cr16-dis.c b/opcodes/cr16-dis.c index 0aaf61c327..1fc8c2b7a6 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)); |