public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/17854] New: Nothing sets pspace_data->sym_cache?
@ 2015-01-18  4:45 xdje42 at gmail dot com
  2015-01-18  4:47 ` [Bug ada/17854] " xdje42 at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: xdje42 at gmail dot com @ 2015-01-18  4:45 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17854

            Bug ID: 17854
           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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-02-02  4:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-18  4:45 [Bug ada/17854] New: Nothing sets pspace_data->sym_cache? xdje42 at gmail dot com
2015-01-18  4:47 ` [Bug ada/17854] " xdje42 at gmail dot com
2015-01-18  4:54 ` xdje42 at gmail dot com
2015-01-18  5:04 ` xdje42 at gmail dot com
2015-01-18  7:25 ` xdje42 at gmail dot com
2015-02-02  3:32 ` cvs-commit at gcc dot gnu.org
2015-02-02  3:40 ` cvs-commit at gcc dot gnu.org
2015-02-02 17:36 ` brobecker at gnat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).