X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fcoff-solib.c;h=64dca7bbefd3eaf53ca9673a14cb9f480031fc86;hb=990f9fe3aa352be5de8c798a21164f52248590ee;hp=fc13bca7b00d12d4b468ac883e4c8f098b0c4aab;hpb=4fe7ef963907aafdb4e47bce11f8d1ca49a6bd5e;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/coff-solib.c b/gdb/coff-solib.c index fc13bca7b0..64dca7bbef 100644 --- a/gdb/coff-solib.c +++ b/gdb/coff-solib.c @@ -43,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) @@ -127,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); }