diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-06-13 19:02:25 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-06-13 19:02:25 +0000 |
commit | e07bf1ac47970757015a5f4c6906aa8884ceb874 (patch) | |
tree | dc1eb6e62547989ddb17518403e4a8d215618760 /binutils/objdump.c | |
parent | 78de0b4335ed57a9d7a818a4dcbdb3d4bc3fd633 (diff) | |
download | gdb-e07bf1ac47970757015a5f4c6906aa8884ceb874.zip gdb-e07bf1ac47970757015a5f4c6906aa8884ceb874.tar.gz gdb-e07bf1ac47970757015a5f4c6906aa8884ceb874.tar.bz2 |
* objdump.c (disassemble_bytes): If the disassembler returns an
error, print out anything it may have printed to the buffer. From
H.J. Lu <hjl@gnu.org>.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r-- | binutils/objdump.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c index 5baf235..40c68cc 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 { |