X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fcoff-solib.c;h=64dca7bbefd3eaf53ca9673a14cb9f480031fc86;hb=54c7009d04fc3da51b50cfbefe5f5894db2cad32;hp=0f3bc76e408f8e5a5769faca1fe01e8426e2baf0;hpb=b6ba6518e9254bc25f88088228e93ac966ebccd1;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/coff-solib.c b/gdb/coff-solib.c index 0f3bc76e40..64dca7bbef 100644 --- a/gdb/coff-solib.c +++ b/gdb/coff-solib.c @@ -25,6 +25,8 @@ #include "bfd.h" #include "gdbcore.h" #include "symtab.h" +#include "symfile.h" +#include "objfiles.h" /* @@ -41,17 +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 (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) @@ -125,5 +130,5 @@ coff_solib_add (char *arg_string, int from_tty, struct target_ops *target) void 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); }