aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index bf8cdda..e9ca175 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -985,6 +985,9 @@ scan_file_globals (objfile)
struct minimal_symbol *msymbol;
struct symbol *sym, *prev;
+ if (objfile->msymbols == 0) /* Beware the null file. */
+ return;
+
for (msymbol = objfile -> msymbols; msymbol -> name != NULL; msymbol++)
{
QUIT;