aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-02-18 15:58:45 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-02-18 15:58:45 +0000
commit904c75ac4f1f245639601fa4f62fe95579ad6b59 (patch)
tree6282f8704564c97eb140f481cd80098e3a95a76c /binutils
parent5bf193a2eedab2cf1437c762fee2cfc8249753a0 (diff)
downloadgdb-904c75ac4f1f245639601fa4f62fe95579ad6b59.zip
gdb-904c75ac4f1f245639601fa4f62fe95579ad6b59.tar.gz
gdb-904c75ac4f1f245639601fa4f62fe95579ad6b59.tar.bz2
2005-02-18 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (display_debug_loc): Print out offset for end of list.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 72ed1fe..12837ea 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-18 H.J. Lu <hongjiu.lu@intel.com>
+
+ * readelf.c (display_debug_loc): Print out offset for end of
+ list.
+
2005-02-18 Joseph S. Myers <joseph@codesourcery.com>
* Makefile.am (TOOL_PROGS): Add objdump.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 24dbacf..e607e0f 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -9490,7 +9490,10 @@ display_debug_loc (Elf_Internal_Shdr *section,
start += pointer_size;
if (begin == 0 && end == 0)
- break;
+ {
+ printf (_(" %8.8lx <End of list>\n"), offset);
+ break;
+ }
/* Check base address specifiers. */
if (begin == -1UL && end != -1UL)
@@ -9524,8 +9527,6 @@ display_debug_loc (Elf_Internal_Shdr *section,
start += length;
}
-
- fputs (_(" <End of list>\n"), stdout);
}
}
return 1;