This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug ada/17853] New: Nothing sets pspace_data->sym_cache?
- From: "xdje42 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 18 Jan 2015 04:38:27 +0000
- Subject: [Bug ada/17853] New: Nothing sets pspace_data->sym_cache?
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17853
Bug ID: 17853
Summary: Nothing sets pspace_data->sym_cache?
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: ada
Assignee: unassigned at sourceware dot org
Reporter: xdje42 at gmail dot com
I think there's a bug in cache invalidation, but my testcase isn't exposing it.
That got me digging into the implementation of ada-lang.c's symbol lookup
cache.
It looks like nothing sets pspace_data->sym_cache.
Presumably, it should be set here.
static struct ada_symbol_cache *
ada_get_symbol_cache (struct program_space *pspace)
{
struct ada_pspace_data *pspace_data = get_ada_pspace_data (pspace);
struct ada_symbol_cache *sym_cache = pspace_data->sym_cache;
if (sym_cache == NULL)
{
sym_cache = XCNEW (struct ada_symbol_cache);
ada_init_symbol_cache (sym_cache);
}
return sym_cache;
}
Could be missing something though.
--
You are receiving this mail because:
You are on the CC list for the bug.