From adb7f3388f557308fab00d544185922035efa8f0 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 18 Sep 2009 17:33:51 +0000 Subject: gdb/ * objfiles.c (free_objfile): Clear SYMFILE_OBJFILE if it is OBJFILE. * rs6000-nat.c (vmap_ldinfo): Only assertion check SYMFILE_OBJFILE now. * symfile.c (syms_from_objfile, symbol_file_clear): Likewise. --- gdb/objfiles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/objfiles.c') diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 1f7489f..8dcca70 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -459,8 +459,8 @@ free_objfile (struct objfile *objfile) unlink_objfile (objfile); - /* If we are going to free the runtime common objfile, mark it - as unallocated. */ + if (objfile == symfile_objfile) + symfile_objfile = NULL; if (objfile == rt_common_objfile) rt_common_objfile = NULL; -- cgit v1.1