diff options
author | Nick Clifton <nickc@redhat.com> | 2011-10-26 14:46:00 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-10-26 14:46:00 +0000 |
commit | f6dd4781ef99e26500c98e3eb54bf01c7295915f (patch) | |
tree | 43358e36d26b4f068a0cd140b496ff472ce9e8df /opcodes | |
parent | fd936b4c69a28e454236c31ec488a1cb8d406d8c (diff) | |
download | gdb-f6dd4781ef99e26500c98e3eb54bf01c7295915f.zip gdb-f6dd4781ef99e26500c98e3eb54bf01c7295915f.tar.gz gdb-f6dd4781ef99e26500c98e3eb54bf01c7295915f.tar.bz2 |
PR binutils/13348
* i386-dis.c (print_insn): Fix testing of array subscript.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 6 | ||||
-rw-r--r-- | opcodes/i386-dis.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 68239dd..4d18f6a 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,7 +1,11 @@ +2011-10-26 Nick Clifton <nickc@redhat.com> + + PR binutils/13348 + * i386-dis.c (print_insn): Fix testing of array subscript. + 2011-10-26 Joern Rennecke <joern.rennecke@embecosm.com> * disassemble.c (ARCH_epiphany): Move into alphasorted spot. - * epiphany-asm.c, epiphany-opc.h: Regenerate. 2011-10-25 Joern Rennecke <joern.rennecke@embecosm.com> diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 85b63ea..019a8f5 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -11331,7 +11331,7 @@ print_insn (bfd_vma pc, disassemble_info *info) { /* Too many prefixes or unused REX prefixes. */ for (i = 0; - all_prefixes[i] && i < (int) ARRAY_SIZE (all_prefixes); + i < (int) ARRAY_SIZE (all_prefixes) && all_prefixes[i]; i++) (*info->fprintf_func) (info->stream, "%s", prefix_name (all_prefixes[i], sizeflag)); |