X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fcoff-solib.c;h=64dca7bbefd3eaf53ca9673a14cb9f480031fc86;hb=a8cdafbd4e8dbf81a28d98de6a046bd9bc5cc097;hp=9c68fa4fd7a8477687b4361905d5f0301ddfc905;hpb=27e232885db363fb545fd2f450e72d929e59b8f6;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/coff-solib.c b/gdb/coff-solib.c index 9c68fa4fd7..64dca7bbef 100644 --- a/gdb/coff-solib.c +++ b/gdb/coff-solib.c @@ -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" /* @@ -41,20 +43,20 @@ SYNOPSIS void coff_solib_add (char *arg_string, int from_tty, - struct target_ops *target) + struct target_ops *target, int readsyms) DESCRIPTION */ 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, int readsyms) { asection *libsect; + if (!readsyms) + return; + libsect = bfd_get_section_by_name (exec_bfd, ".lib"); if (libsect) @@ -126,7 +128,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); + coff_solib_add ((char *) 0, 0, (struct target_ops *) 0, auto_solib_add); }