summaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorJim Wilson <wilson@tuliptree.org>2000-08-28 22:08:36 +0000
committerJim Wilson <wilson@tuliptree.org>2000-08-28 22:08:36 +0000
commitd83ee9f64a1ef2f4eb3ec6198e70744d50a0a4ce (patch)
tree7da45a8d805a7e603ae0acc0e06334011e118f65 /opcodes
parent7c73ee4955d4a108f66927adb493a3c482576ca3 (diff)
downloadgdb-d83ee9f64a1ef2f4eb3ec6198e70744d50a0a4ce.tar.gz
Fix segfault from last memory-leak fixing patch.
* ia64-dis.c (print_insn_ia64): Add failed label after ia64_free_opcode call. Change last goto to use failed instead of done.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/ia64-dis.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index cbbe12e0233..ef0cdb8017b 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-28 Jim Wilson <wilson@cygnus.com>
+
+ * ia64-dis.c (print_insn_ia64): Add failed label after ia64_free_opcode
+ call. Change last goto to use failed instead of done.
+
2000-08-28 Dave Brolley <brolley@redhat.com>
* cgen-ibld.in (cgen_put_insn_int_value): New function.
diff --git a/opcodes/ia64-dis.c b/opcodes/ia64-dis.c
index 629a76820d3..6e71728eb2a 100644
--- a/opcodes/ia64-dis.c
+++ b/opcodes/ia64-dis.c
@@ -262,11 +262,12 @@ print_insn_ia64 (bfd_vma memaddr, struct disassemble_info *info)
done:
ia64_free_opcode (idesc);
+ failed:
if (slotnum == 2)
retval += 16 - 3*slot_multiplier;
return retval;
decoding_failed:
(*info->fprintf_func) (info->stream, " data8 %#011llx", insn);
- goto done;
+ goto failed;
}