* python/py-auto-load.c (source_section_scripts): Mention objfile
authorDoug Evans <dje@google.com>
Mon, 16 May 2011 16:33:57 +0000 (16:33 +0000)
committerDoug Evans <dje@google.com>
Mon, 16 May 2011 16:33:57 +0000 (16:33 +0000)
name in warning.

gdb/ChangeLog
gdb/python/py-auto-load.c

index 438be9b..677970d 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-16  Doug Evans  <dje@google.com>
+
+       * python/py-auto-load.c (source_section_scripts): Mention objfile
+       name in warning.
+
 2011-05-15  Doug Evans  <dje@google.com>
 
        * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
index 4024fd3..619d995 100644 (file)
@@ -304,9 +304,10 @@ source_section_scripts (struct objfile *objfile, const char *source_name,
          /* We don't throw an error, the program is still debuggable.  */
          if (! pspace_info->script_not_found_warning_printed)
            {
-             warning (_("Missing auto-load scripts referenced in %s.\n\
+             warning (_("Missing auto-load scripts referenced in section %s\n\
+of file %s\n\
 Use `info auto-load-scripts [REGEXP]' to list them."),
-                      GDBPY_AUTO_SECTION_NAME);
+                      GDBPY_AUTO_SECTION_NAME, objfile->name);
              pspace_info->script_not_found_warning_printed = TRUE;
            }
          continue;