Hello, I have encountered a gdb crash (gdb 7.3.1 based qnx gdb) in function cp_scan_for_anonymous_namespace. What happens is that we get into 'define_symbol' function having an objfile without any symtabs. cp_scan_for_anonymous_namespaces dereferences symbol->symtab and crashes gdb. This is all observed/debugged on gdb7.3.1 code base, but from looking at HEAD code, the possibility still exists. I haven't created a testcase yet (the case I have is quite complicated with numerous shared objects involved and a core). There are no regressions in existing test suite, tested on "x86_64-unknown-linux-gnu". Thanks, Aleksandar Ristovski ChangeLog: 2011-10-20 Aleksandar Ristovski * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function arguments by adding OBJFILE. Instead of getting objfile from symbol's symtab, use new argument OBJFILE. * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function arguments by adding OBJFILE. * gdb/dwarf2read.c (new_symbol_full): Change call to cp_scan_for_anonymous_namespaces to match new signature. * gdb/stabsread.c (define_symbol): Change call to cp_scan_for_anonymous_namespaces to match new signature.