diff options
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 27e9571832..aea8c762ee 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -2772,13 +2772,15 @@ deduce_language_from_filename (const char *filename) CUST is from the result of allocate_compunit_symtab. */ struct symtab * -allocate_symtab (struct compunit_symtab *cust, const char *filename) +allocate_symtab (struct compunit_symtab *cust, const char *filename, + const char *filename_for_id) { struct objfile *objfile = cust->objfile (); struct symtab *symtab = OBSTACK_ZALLOC (&objfile->objfile_obstack, struct symtab); symtab->filename = objfile->intern (filename); + symtab->filename_for_id = objfile->intern (filename_for_id); symtab->fullname = NULL; symtab->set_language (deduce_language_from_filename (filename)); |