This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] improve missing auto-load-script warning


Hi.

fyi, I checked this in.

2011-05-16  Doug Evans  <dje@google.com>

	* python/py-auto-load.c (source_section_scripts): Mention objfile
	name in warning.

Index: python/py-auto-load.c
===================================================================
RCS file: /cvs/src/src/gdb/python/py-auto-load.c,v
retrieving revision 1.10
diff -u -p -r1.10 py-auto-load.c
--- python/py-auto-load.c	15 May 2011 18:46:24 -0000	1.10
+++ python/py-auto-load.c	16 May 2011 16:32:36 -0000
@@ -304,9 +304,10 @@ source_section_scripts (struct objfile *
 	  /* 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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]