daily update
[deliverable/binutils-gdb.git] / gdb / coff-solib.c
index 89a7b4b979930325ec778f2adb227e20b36694bc..fc13bca7b00d12d4b468ac883e4c8f098b0c4aab 100644 (file)
@@ -1,5 +1,5 @@
 /* Handle COFF SVR3 shared libraries for GDB, the GNU Debugger.
-   Copyright 1993 Free Software Foundation, Inc.
+   Copyright 1993, 1994, 1998, 1999, 2000 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -25,6 +25,8 @@
 #include "bfd.h"
 #include "gdbcore.h"
 #include "symtab.h"
+#include "symfile.h"
+#include "objfiles.h"
 
 /*
 
  */
 
 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;
 
@@ -94,9 +93,7 @@ coff_solib_add (arg_string, from_tty, target)
          objfile = symbol_file_add (filename, from_tty,
                                     NULL,      /* no offsets */
                                     0,         /* not mainline */
-                                    0,         /* flags */
-                                    0,         /* Not user loaded */
-                                    1);        /* Is a solib */
+                                    OBJF_SHARED);      /* flags */
 
          libsize -= len * 4;
          lib += len * 4;
@@ -128,7 +125,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.024576 seconds and 4 git commands to generate.