Add missing call to obstack_init for ada-lang.c::cache_space
This bit was meant to be merged with the following patch:
commit 3d9434b5dd
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.
This commit is contained in:
parent
3d9434b5dd
commit
9dee8cc6aa
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2014-02-10 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* ada-lang.c (HASH_SIZE): New macro.
|
* ada-lang.c (HASH_SIZE): New macro.
|
||||||
|
|
|
@ -13493,6 +13493,7 @@ DWARF attribute."),
|
||||||
NULL, NULL, &maint_set_ada_cmdlist, &maint_show_ada_cmdlist);
|
NULL, NULL, &maint_set_ada_cmdlist, &maint_show_ada_cmdlist);
|
||||||
|
|
||||||
obstack_init (&symbol_list_obstack);
|
obstack_init (&symbol_list_obstack);
|
||||||
|
obstack_init (&cache_space);
|
||||||
|
|
||||||
decoded_names_store = htab_create_alloc
|
decoded_names_store = htab_create_alloc
|
||||||
(256, htab_hash_string, (int (*)(const void *, const void *)) streq,
|
(256, htab_hash_string, (int (*)(const void *, const void *)) streq,
|
||||||
|
|
Loading…
Reference in New Issue