aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2021-06-12 10:27:01 +0200
committerTom de Vries <tdevries@suse.de>2021-06-24 17:44:35 +0200
commit744ed1ee391fa604fe9eb854f5ca25120061c832 (patch)
treeec920579a3ea4d903d0561c9183be97721129ff2
parentf978716f55fa7cefbde24c563a5793a78d17346b (diff)
downloadbinutils-744ed1ee391fa604fe9eb854f5ca25120061c832.zip
binutils-744ed1ee391fa604fe9eb854f5ca25120061c832.tar.gz
binutils-744ed1ee391fa604fe9eb854f5ca25120061c832.tar.bz2
[gdb/symtab] Add lazy_expand_symtab_p, default to false
Add variable to enable lazy symbol table expansion. Set to false for now, to enable gradual introduction of implementation. Make user-settable using "maint set/show lazy-expand-symtab on/off".
-rw-r--r--gdb/psymtab.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index fe32486..7efc562 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -37,6 +37,8 @@
#include <algorithm>
#include <set>
+bool lazy_expand_symtab_p = false;
+
static struct partial_symbol *lookup_partial_symbol (struct objfile *,
struct partial_symtab *,
const lookup_name_info &,
@@ -1952,4 +1954,12 @@ just the symbol table structures themselves."),
_("\
Check consistency of currently expanded psymtabs versus symtabs."),
&maintenancelist);
+
+ add_setshow_boolean_cmd ("lazy-expand-symtab", class_maintenance,
+ &lazy_expand_symtab_p,
+ _("Set whether symtabs are expanded lazily."),
+ _("Show whether symtabs are expanded lazily."),
+ _("Control whether symtabs are expanded lazily."),
+ NULL, NULL,
+ &maintenance_set_cmdlist, &maintenance_show_cmdlist);
}