diff options
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 842c16f..b192184 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -84,7 +84,8 @@ print_symbol_bcache_statistics (void) ALL_PSPACE_OBJFILES (pspace, objfile) { QUIT; - printf_filtered (_("Byte cache statistics for '%s':\n"), objfile->name); + printf_filtered (_("Byte cache statistics for '%s':\n"), + objfile_name (objfile)); print_bcache_statistics (psymbol_bcache_get_bcache (objfile->psymbol_cache), "partial symbol cache"); print_bcache_statistics (objfile->per_bfd->macro_cache, @@ -106,7 +107,7 @@ print_objfile_statistics (void) ALL_PSPACE_OBJFILES (pspace, objfile) { QUIT; - printf_filtered (_("Statistics for '%s':\n"), objfile->name); + printf_filtered (_("Statistics for '%s':\n"), objfile_name (objfile)); if (OBJSTAT (objfile, n_stabs) > 0) printf_filtered (_(" Number of \"stab\" symbols read: %d\n"), OBJSTAT (objfile, n_stabs)); @@ -161,7 +162,7 @@ dump_objfile (struct objfile *objfile) { struct symtab *symtab; - printf_filtered ("\nObject file %s: ", objfile->name); + printf_filtered ("\nObject file %s: ", objfile_name (objfile)); printf_filtered ("Objfile at "); gdb_print_host_address (objfile, gdb_stdout); printf_filtered (", bfd at "); @@ -202,7 +203,7 @@ dump_msymbols (struct objfile *objfile, struct ui_file *outfile) int index; char ms_type; - fprintf_filtered (outfile, "\nObject file %s:\n\n", objfile->name); + fprintf_filtered (outfile, "\nObject file %s:\n\n", objfile_name (objfile)); if (objfile->minimal_symbol_count == 0) { fprintf_filtered (outfile, "No minimal symbols found.\n"); @@ -299,7 +300,8 @@ dump_symtab_1 (struct objfile *objfile, struct symtab *symtab, if (symtab->dirname) fprintf_filtered (outfile, "Compilation directory is %s\n", symtab->dirname); - fprintf_filtered (outfile, "Read from object file %s (", objfile->name); + fprintf_filtered (outfile, "Read from object file %s (", + objfile_name (objfile)); gdb_print_host_address (objfile, outfile); fprintf_filtered (outfile, ")\n"); fprintf_filtered (outfile, "Language: %s\n", @@ -677,7 +679,7 @@ maintenance_print_msymbols (char *args, int from_tty) ALL_PSPACE_OBJFILES (pspace, objfile) { QUIT; - if (symname == NULL || (!stat (objfile->name, &obj_st) + if (symname == NULL || (!stat (objfile_name (objfile), &obj_st) && sym_st.st_dev == obj_st.st_dev && sym_st.st_ino == obj_st.st_ino)) dump_msymbols (objfile, outfile); @@ -702,7 +704,7 @@ maintenance_print_objfiles (char *regexp, int from_tty) { QUIT; if (! regexp - || re_exec (objfile->name)) + || re_exec (objfile_name (objfile))) dump_objfile (objfile); } } @@ -738,7 +740,7 @@ maintenance_info_symtabs (char *regexp, int from_tty) { if (! printed_objfile_start) { - printf_filtered ("{ objfile %s ", objfile->name); + printf_filtered ("{ objfile %s ", objfile_name (objfile)); wrap_here (" "); printf_filtered ("((struct objfile *) %s)\n", host_address_to_string (objfile)); @@ -809,7 +811,7 @@ maintenance_check_symtabs (char *ignore, int from_tty) { if (! printed_objfile_start) { - printf_filtered ("{ objfile %s ", objfile->name); + printf_filtered ("{ objfile %s ", objfile_name (objfile)); wrap_here (" "); printf_filtered ("((struct objfile *) %s)\n", host_address_to_string (objfile)); |