diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-03-30 01:26:43 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-03-30 01:26:43 +0000 |
commit | f1467e3315649f7b5ff3d223b4618e6b79b17107 (patch) | |
tree | 61ab4b455d05b773d270f0a126e512f07daed418 /binutils | |
parent | 0068722893c2b04ae34b633e59ab289f31c794a9 (diff) | |
download | gdb-f1467e3315649f7b5ff3d223b4618e6b79b17107.zip gdb-f1467e3315649f7b5ff3d223b4618e6b79b17107.tar.gz gdb-f1467e3315649f7b5ff3d223b4618e6b79b17107.tar.bz2 |
2001-03-29 H.J. Lu <hjl@gnu.org>
* readelf.c (process_unwind): Only do unwind sections for
IA64.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index ad1d956..dc8163e 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2001-03-29 H.J. Lu <hjl@gnu.org> + + * readelf.c (process_unwind): Only do unwind sections for + IA64. + 2001-03-28 H.J. Lu <hjl@gnu.org> * Makefile.am ($(srcdir)/dlltool.1): Remove the extra target. diff --git a/binutils/readelf.c b/binutils/readelf.c index b589e36..ade1d17 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -3411,6 +3411,12 @@ process_unwind (file) unsigned long i, addr_size; struct unw_aux_info aux; + if (elf_header.e_machine != EM_IA_64) + { + printf (_("\nThere are no unwind sections in this file.\n")); + return 1; + } + memset (& aux, 0, sizeof (aux)); addr_size = is_32bit_elf ? 4 : 8; |