2001-01-24 Fernando Nasser <fnasser@redhat.com>
[deliverable/binutils-gdb.git] / gdb / coff-solib.c
index b25a26ce6c04fe9e2cee4a62da2ead719412f05e..e36b276adb1daefdb87ae9ec44c4ce2d5ca1c90a 100644 (file)
  */
 
 void
-coff_solib_add (arg_string, from_tty, target)
-     char *arg_string;
-     int from_tty;
-     struct target_ops *target;
+coff_solib_add (char *arg_string, int from_tty, struct target_ops *target)
 {
   asection *libsect;
 
@@ -92,12 +89,9 @@ coff_solib_add (arg_string, from_tty, target)
          filename = (char *) ent + nameoffset * 4;
 
          objfile = symbol_file_add (filename, from_tty,
-                                    0,         /* addr */
+                                    NULL,      /* no offsets */
                                     0,         /* not mainline */
-                                    0,         /* not mapped */
-                                    0,         /* Not readnow */
-                                    0,         /* Not user loaded */
-                                    1);        /* Is a solib */
+                                    OBJF_SHARED);      /* flags */
 
          libsize -= len * 4;
          lib += len * 4;
@@ -129,7 +123,7 @@ coff_solib_add (arg_string, from_tty, target)
  */
 
 void
-coff_solib_create_inferior_hook ()
+coff_solib_create_inferior_hook (void)
 {
   coff_solib_add ((char *) 0, 0, (struct target_ops *) 0);
 }
This page took 0.040804 seconds and 4 git commands to generate.