Code cleanup: Add objfile_name accessor
[deliverable/binutils-gdb.git] / gdb / python / py-auto-load.c
index fa0743236f2423ae6a5eabe5f8ad2666c60fd951..2802acf34cf33942b494d771bd116f0a28780de8 100644 (file)
@@ -74,7 +74,7 @@ gdbpy_load_auto_script_for_objfile (struct objfile *objfile, FILE *file,
   is_safe = file_is_auto_load_safe (filename,
                                    _("auto-load: Loading Python script \"%s\" "
                                      "by extension for objfile \"%s\".\n"),
-                                   filename, objfile->name);
+                                   filename, objfile_name (objfile));
 
   /* Add this script to the hash table too so "info auto-load python-scripts"
      can print it.  */
@@ -157,7 +157,7 @@ source_section_scripts (struct objfile *objfile, const char *source_name,
                                         "\"%s\" from section \"%s\" of "
                                         "objfile \"%s\".\n"),
                                       full_path, GDBPY_AUTO_SECTION_NAME,
-                                      objfile->name))
+                                      objfile_name (objfile)))
            opened = 0;
        }
       else
@@ -169,7 +169,7 @@ source_section_scripts (struct objfile *objfile, const char *source_name,
            warning (_("Missing auto-load scripts referenced in section %s\n\
 of file %s\n\
 Use `info auto-load python [REGEXP]' to list them."),
-                    GDBPY_AUTO_SECTION_NAME, objfile->name);
+                    GDBPY_AUTO_SECTION_NAME, objfile_name (objfile));
        }
 
       /* If one script isn't found it's not uncommon for more to not be
This page took 0.03142 seconds and 4 git commands to generate.