import gdb-1999-10-04 snapshot
[deliverable/binutils-gdb.git] / gdb / osfsolib.c
index 6b05613eb76b8cc5e6e9c0e3a52f947faf56664b..b9fba613304c378dcaf8873f73ed3781fb6077a1 100644 (file)
@@ -578,7 +578,9 @@ symbol_add_stub (arg)
 {
   register struct so_list *so = (struct so_list *) arg;                /* catch_errs bogon */
   CORE_ADDR text_addr = 0;
+  struct section_addr_info section_addrs;
 
+  memset (&section_addrs, 0, sizeof (section_addrs));
   if (so->textsection)
     text_addr = so->textsection->addr;
   else if (so->abfd != NULL)
@@ -596,9 +598,10 @@ symbol_add_stub (arg)
        text_addr = bfd_section_vma (so->abfd, lowest_sect) + LM_OFFSET (so);
     }
 
+  section_addrs.text_addr = text_addr;
   so->objfile = symbol_file_add (so->so_name, so->from_tty,
-                                text_addr,
-                                0, 0, 0, 0, 1);
+                                &section_addrs,
+                                0, 0, 0, 1);
   return (1);
 }
 
This page took 0.024862 seconds and 4 git commands to generate.