Code cleanup: Add objfile_name accessor
[deliverable/binutils-gdb.git] / gdb / gdbtypes.c
index d4375ae3ddc310cb8efe663e8a417db48123b7cf..ea5ca2171dd027b3b92d0a93bac0d7c96a2a0b20 100644 (file)
@@ -1187,7 +1187,8 @@ type_name_no_tag_or_error (struct type *type)
   name = type_name_no_tag (saved_type);
   objfile = TYPE_OBJFILE (saved_type);
   error (_("Invalid anonymous type %s [in module %s], GCC PR debug/47510 bug?"),
-        name ? name : "<anonymous>", objfile ? objfile->name : "<arch>");
+        name ? name : "<anonymous>",
+        objfile ? objfile_name (objfile) : "<arch>");
 }
 
 /* Lookup a typedef or primitive type named NAME, visible in lexical
This page took 0.027281 seconds and 4 git commands to generate.