* hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size and
authorJeff Law <law@redhat.com>
Thu, 12 May 1994 18:02:27 +0000 (18:02 +0000)
committerJeff Law <law@redhat.com>
Thu, 12 May 1994 18:02:27 +0000 (18:02 +0000)
elf_unwind_entries are always initialized.

gdb/ChangeLog
gdb/hppa-tdep.c

index be7922f7c1ff21000323e28720d231a7e49317a1..fd362cf6f559ddeb5abb5d4eb2c6253735d87f43 100644 (file)
@@ -1,5 +1,8 @@
 Thu May 12 10:46:27 1994  Jeff Law  (law@snake.cs.utah.edu)
 
+       * hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size and
+       elf_unwind_entries are always initialized.
+
        * hppa-tdep.c (skip_trampoline_code): Handle argument relocation
        stubs which return directly to the caller rather than to the stub
        itself.
index b999384649df83df9601091dcdba68521f9877bf..55f01e8ba68db024dca760fea0e7bbe5a8bbf4b0 100644 (file)
@@ -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)
     {