diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-01-05 17:29:41 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-01-05 17:29:41 +0000 |
commit | e54b12b7797ece3410070f0d634b8ba9117dc1e1 (patch) | |
tree | cf101e2af45d538b88d0c7adce60b753688d89b4 | |
parent | 0ea390ed3c6677b871ce457c5cc003c7c6074128 (diff) | |
download | gdb-e54b12b7797ece3410070f0d634b8ba9117dc1e1.zip gdb-e54b12b7797ece3410070f0d634b8ba9117dc1e1.tar.gz gdb-e54b12b7797ece3410070f0d634b8ba9117dc1e1.tar.bz2 |
2005-01-05 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (display_debug_loc): Display base address
specifiers. Always output <End of list>.
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8fddbab..02ddaea 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,10 @@ 2005-01-05 H.J. Lu <hongjiu.lu@intel.com> + * readelf.c (display_debug_loc): Display base address + specifiers. Always output <End of list>. + +2005-01-05 H.J. Lu <hongjiu.lu@intel.com> + * readelf.c (have_frame_base): New. (need_base_address): Likewise. (saved_base_address): Likewise. diff --git a/binutils/readelf.c b/binutils/readelf.c index c12e970..3fb94e8 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -9550,6 +9550,8 @@ display_debug_loc (Elf_Internal_Shdr *section, if (begin == -1UL && end != -1UL) { base_address = end; + printf (" %8.8lx %8.8lx %8.8lx (base address)\n", + offset, begin, end); continue; } @@ -9577,9 +9579,7 @@ display_debug_loc (Elf_Internal_Shdr *section, start += length; } - if (j < debug_information [i].num_loc_offsets -1) - printf (_(" <End of list>")); - printf ("\n"); + fputs (_(" <End of list>\n"), stdout); } } return 1; |