aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2014-02-10 12:52:15 +0400
committerJoel Brobecker <brobecker@adacore.com>2014-02-10 12:57:13 +0400
commit9dee8cc6aa668228309de7d0e23e1775beb7d12f (patch)
tree3a143f16f3b19513bc8b3186454eebdef726df61 /gdb
parent3d9434b5ddc141178be232048e3d944955cc1f91 (diff)
downloadgdb-9dee8cc6aa668228309de7d0e23e1775beb7d12f.zip
gdb-9dee8cc6aa668228309de7d0e23e1775beb7d12f.tar.gz
gdb-9dee8cc6aa668228309de7d0e23e1775beb7d12f.tar.bz2
Add missing call to obstack_init for ada-lang.c::cache_space
This bit was meant to be merged with the following patch: commit 3d9434b5ddc141178be232048e3d944955cc1f91 Subject: [Ada] Add a symbol lookup cache ... but I forgot :-(. This causes the cache to be undefined, and with a bit of (bad) luck: % gdb (gdb) set lang ada (gdb) set $xxx := 1 [SEGV] gdb/ChangeLog: * ada-lang.c (_initialize_ada_language): Initialize cache_space obstack.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ada-lang.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 828cb6e..7a51617 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2014-02-10 Joel Brobecker <brobecker@adacore.com>
+ * ada-lang.c (_initialize_ada_language): Initialize
+ cache_space obstack.
+
+2014-02-10 Joel Brobecker <brobecker@adacore.com>
+
* ada-lang.c (HASH_SIZE): New macro.
(struct cache_entry): New type.
(cache_space, cache): New static globals.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index fc2c83b..a4accac 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -13493,6 +13493,7 @@ DWARF attribute."),
NULL, NULL, &maint_set_ada_cmdlist, &maint_show_ada_cmdlist);
obstack_init (&symbol_list_obstack);
+ obstack_init (&cache_space);
decoded_names_store = htab_create_alloc
(256, htab_hash_string, (int (*)(const void *, const void *)) streq,