aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-01-04 23:37:18 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-01-04 23:37:18 +0000
commitb0660586abeba8d5d48a261b0b13128db267f6a8 (patch)
treedaaaf6033a6b2869084a5cefa5c3abe902218324 /binutils/readelf.c
parent80837d18f6b147698b67e8ebf0f053316ea8f678 (diff)
downloadgdb-b0660586abeba8d5d48a261b0b13128db267f6a8.zip
gdb-b0660586abeba8d5d48a261b0b13128db267f6a8.tar.gz
gdb-b0660586abeba8d5d48a261b0b13128db267f6a8.tar.bz2
2005-01-04 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (display_debug_loc): Display offsets for hole and overlap. (display_debug_str): Add a newline at the end.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index d81907c..4c74a37 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -9483,10 +9483,10 @@ display_debug_loc (Elf_Internal_Shdr *section,
{
if (start < next)
warn (_("There is a hole [0x%lx - 0x%lx] in .debug_loc section.\n"),
- start, next);
+ start - section_begin, next - section_begin);
else if (start > next)
warn (_("There is an overlap [0x%lx - 0x%lx] in .debug_loc section.\n"),
- start, next);
+ start - section_begin, next - section_begin);
}
start = next;
@@ -9587,6 +9587,8 @@ display_debug_str (Elf_Internal_Shdr *section,
bytes -= lbytes;
}
+ putchar ('\n');
+
return 1;
}