From: Michael Snyder Date: Mon, 14 May 2001 18:45:45 +0000 (+0000) Subject: 2001-05-14 Michael Snyder X-Git-Tag: dberlin-typesystem-branchpoint~532 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb0ba49e37b824e23fe9ff24f07c008e74a6a382;p=platform%2Fupstream%2Fbinutils.git 2001-05-14 Michael Snyder * solib.c, solib.h: Add comment for function no_shared_libraries. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 101954b5..5c88973 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,6 @@ 2001-05-14 Michael Snyder + * solib.c, solib.h: Add comment for function no_shared_libraries. * remote.c (remote_write_bytes): Set nr_bytes to return value of bin2hex. diff --git a/gdb/solib.c b/gdb/solib.c index 8da44df..370f814 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -809,6 +809,18 @@ sharedlibrary_command (char *args, int from_tty) solib_add (args, from_tty, (struct target_ops *) 0); } +/* LOCAL FUNCTION + + no_shared_libraries -- handle command to explicitly discard symbols + from shared libraries. + + DESCRIPTION + + Implements the command "nosharedlibrary", which discards symbols + that have been auto-loaded from shared libraries. Symbols from + shared libraries that were added by explicit request of the user + are not discarded. Also called from remote.c. */ + void no_shared_libraries (char *ignored, int from_tty) { diff --git a/gdb/solib.h b/gdb/solib.h index 2da8460..56a4a40 100644 --- a/gdb/solib.h +++ b/gdb/solib.h @@ -194,4 +194,6 @@ extern char *solib_address (CORE_ADDR); /* solib.c */ extern int in_solib_dynsym_resolve_code (CORE_ADDR); /* solib.c */ +/* Discard symbols that were auto-loaded from shared libraries. */ + extern void no_shared_libraries (char *ignored, int from_tty);