Bug 17853 - Nothing sets pspace_data->sym_cache?
Summary: Nothing sets pspace_data->sym_cache?
Status: RESOLVED DUPLICATE of bug 17854
Alias: None
Product: gdb
Classification: Unclassified
Component: ada (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-18 04:38 UTC by Doug Evans
Modified: 2015-01-18 07:25 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Evans 2015-01-18 04:38:27 UTC
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.
Comment 1 Doug Evans 2015-01-18 07:20:36 UTC
Bleah.
Bugzilla was really slow tonight after I clicked "Submit" I got told the request timed out.
So I refiled, but evidently even though it told me the request timed out this still got filed.

Closing this as a dupe of PR 17854.
Comment 2 Doug Evans 2015-01-18 07:25:46 UTC
Closing as dupe of 17854.

*** This bug has been marked as a duplicate of bug 17854 ***