This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: remove unused global
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 22 Feb 2011 08:54:42 -0700
- Subject: FYI: remove unused global
I'm checking this in.
I happened to run across auto_solib_limit, which is defined but never
used. This patch deletes it.
Tested by rebuilding gdb.
Tom
2011-02-22 Tom Tromey <tromey@redhat.com>
* symfile.c (auto_solib_limit): Remove.
* symfile.h (auto_solib_limit): Remove.
Index: symfile.c
===================================================================
RCS file: /cvs/src/src/gdb/symfile.c,v
retrieving revision 1.305
diff -u -r1.305 symfile.c
--- symfile.c 11 Jan 2011 21:53:24 -0000 1.305
+++ symfile.c 22 Feb 2011 15:53:53 -0000
@@ -176,16 +176,6 @@
report all the functions that are actually present. */
int auto_solib_add = 1;
-
-/* For systems that support it, a threshold size in megabytes. If
- automatically adding a new library's symbol table to those already
- known to the debugger would cause the total shared library symbol
- size to exceed this threshhold, then the shlib's symbols are not
- added. The threshold is ignored if the user explicitly asks for a
- shlib to be added, such as when using the "sharedlibrary"
- command. */
-
-int auto_solib_limit;
/* Make a null terminated copy of the string at PTR with SIZE characters in
Index: symfile.h
===================================================================
RCS file: /cvs/src/src/gdb/symfile.h,v
retrieving revision 1.83
diff -u -r1.83 symfile.h
--- symfile.h 11 Jan 2011 21:53:24 -0000 1.83
+++ symfile.h 22 Feb 2011 15:53:53 -0000
@@ -475,15 +475,6 @@
extern int auto_solib_add;
-/* For systems that support it, a threshold size in megabytes. If
- automatically adding a new library's symbol table to those already
- known to the debugger would cause the total shared library symbol
- size to exceed this threshhold, then the shlib's symbols are not
- added. The threshold is ignored if the user explicitly asks for a
- shlib to be added, such as when using the "sharedlibrary" command. */
-
-extern int auto_solib_limit;
-
/* From symfile.c */
extern void set_initial_language (void);