Keep objfile original filename
[deliverable/binutils-gdb.git] / gdb / symfile-mem.c
index e148d09a8e00d1bc7257dc9f3342446250a62729..2a49c5461ac0b53466546260a4ecb737f298b706 100644 (file)
@@ -129,7 +129,8 @@ symbol_file_add_from_memory (struct bfd *templ, CORE_ADDR addr, char *name,
       }
   sai->num_sections = i;
 
-  objf = symbol_file_add_from_bfd (nbfd, from_tty ? SYMFILE_VERBOSE : 0,
+  objf = symbol_file_add_from_bfd (nbfd, bfd_get_filename (nbfd),
+                                  from_tty ? SYMFILE_VERBOSE : 0,
                                    sai, OBJF_SHARED, NULL);
 
   /* This might change our ideas about frames already looked at.  */
This page took 0.023922 seconds and 4 git commands to generate.