aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 0425c01..10269bb 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -326,7 +326,8 @@ elf_symtab_read (abfd, addr, objfile, dynamic)
((char *) sym -> name, symaddr,
mst_solib_trampoline, NULL, objfile);
#ifdef SOFUN_ADDRESS_MAYBE_MISSING
- msym->filename = filesymname;
+ if (msym != NULL)
+ msym->filename = filesymname;
#endif
continue;
}
@@ -516,7 +517,8 @@ elf_symtab_read (abfd, addr, objfile, dynamic)
((char *) sym -> name, symaddr,
ms_type, (PTR) size, objfile);
#ifdef SOFUN_ADDRESS_MAYBE_MISSING
- msym->filename = filesymname;
+ if (msym != NULL)
+ msym->filename = filesymname;
#endif
}
}