aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-05-12 18:02:27 +0000
committerJeff Law <law@redhat.com>1994-05-12 18:02:27 +0000
commitf55179cbcda1f767ecb7678e581f738a7d35acb5 (patch)
tree6728469287322ca453f7b289f23e8b08dd344fd9 /gdb/hppa-tdep.c
parent88b91d4a1b08985feaeaef6b2c0ea9db54d269fe (diff)
downloadfsf-binutils-gdb-f55179cbcda1f767ecb7678e581f738a7d35acb5.zip
fsf-binutils-gdb-f55179cbcda1f767ecb7678e581f738a7d35acb5.tar.gz
fsf-binutils-gdb-f55179cbcda1f767ecb7678e581f738a7d35acb5.tar.bz2
* hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size and
elf_unwind_entries are always initialized.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index b999384..55f01e8 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -379,6 +379,11 @@ read_unwind_info (objfile)
elf_unwind_size = bfd_section_size (objfile->obfd, elf_unwind_sec);
elf_unwind_entries = elf_unwind_size / UNWIND_ENTRY_SIZE;
}
+ else
+ {
+ elf_unwind_size = 0;
+ elf_unwind_entries = 0;
+ }
if (stub_unwind_sec)
{