From e07bf1ac47970757015a5f4c6906aa8884ceb874 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 13 Jun 1999 19:02:25 +0000 Subject: [PATCH] * objdump.c (disassemble_bytes): If the disassembler returns an error, print out anything it may have printed to the buffer. From H.J. Lu . --- binutils/ChangeLog | 4 ++++ binutils/objdump.c | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8e7ba4a618..42aafaaf3b 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,9 @@ 1999-06-13 Ian Lance Taylor + * objdump.c (disassemble_bytes): If the disassembler returns an + error, print out anything it may have printed to the buffer. From + H.J. Lu . + * defparse.y (explist): Remove separate expline to eliminate shift/reduce conflict. diff --git a/binutils/objdump.c b/binutils/objdump.c index 5baf235ebb..40c68cc3b3 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -1305,7 +1305,12 @@ disassemble_bytes (info, disassemble_fn, insns, data, start, stop, relppp, if (info->bytes_per_line != 0) bytes_per_line = info->bytes_per_line; if (bytes < 0) - break; + { + if (sfile.current != sfile.buffer) + printf ("%s\n", sfile.buffer); + free (sfile.buffer); + break; + } } else {