* symfile.c (reread_symbols): Reset psymtabs_addrmap to NULL
authorDoug Evans <dje@google.com>
Thu, 4 Jun 2009 00:50:16 +0000 (00:50 +0000)
committerDoug Evans <dje@google.com>
Thu, 4 Jun 2009 00:50:16 +0000 (00:50 +0000)
after discarding its contents.

gdb/ChangeLog
gdb/symfile.c

index 13486a4..b84b01b 100644 (file)
@@ -1,3 +1,8 @@
+2009-06-03  Doug Evans  <dje@google.com>
+
+       * symfile.c (reread_symbols): Reset psymtabs_addrmap to NULL
+       after discarding its contents.
+
 2009-06-03  Pedro Alves  <pedro@codesourcery.com>
 
        * target.c: Include "exec.h".
index 4b8a576..164690d 100644 (file)
@@ -2361,6 +2361,7 @@ reread_symbols (void)
              objfile->sections = NULL;
              objfile->symtabs = NULL;
              objfile->psymtabs = NULL;
+             objfile->psymtabs_addrmap = NULL;
              objfile->free_psymtabs = NULL;
              objfile->cp_namespace_symtab = NULL;
              objfile->msymbols = NULL;