* python/py-auto-load.c (source_section_scripts): Move comment to
authorDoug Evans <xdje42@gmail.com>
Fri, 29 Nov 2013 20:34:32 +0000 (12:34 -0800)
committerDoug Evans <xdje42@gmail.com>
Fri, 29 Nov 2013 20:34:32 +0000 (12:34 -0800)
more relevant location.

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

index 28e06f9b8889a71702b14a274af377e8c74218a0..5a9cce51ecbde72a5970536e9513c4cfb3f5ccc3 100644 (file)
@@ -1,5 +1,8 @@
 2013-11-29  Doug Evans  <xdje42@gmail.com>
 
+       * python/py-auto-load.c (source_section_scripts): Move comment to
+       more relevant location.
+
        Whitespace cleanup.
        * python/py-breakpoint.c: Remove trailing whitespace.
        * python/py-cmd.c: Ditto.
index c54e436dc23cb233718310073b89ce622c41b2ab..827918a7fde7ff880895f75139d6643ceb77116b 100644 (file)
@@ -164,7 +164,14 @@ source_section_scripts (struct objfile *objfile, const char *source_name,
        {
          full_path = NULL;
 
-         /* We don't throw an error, the program is still debuggable.  */
+         /* If one script isn't found it's not uncommon for more to not be
+            found either.  We don't want to print a message for each script,
+            too much noise.  Instead, we print the warning once and tell the
+            user how to find the list of scripts that weren't loaded.
+            We don't throw an error, the program is still debuggable.
+
+            IWBN if complaints.c were more general-purpose.  */
+
          if (script_not_found_warning_print (pspace_info))
            warning (_("Missing auto-load scripts referenced in section %s\n\
 of file %s\n\
@@ -172,13 +179,6 @@ Use `info auto-load python [REGEXP]' to list them."),
                     GDBPY_AUTO_SECTION_NAME, objfile_name (objfile));
        }
 
-      /* If one script isn't found it's not uncommon for more to not be
-        found either.  We don't want to print an error message for each
-        script, too much noise.  Instead, we print the warning once and tell
-        the user how to find the list of scripts that weren't loaded.
-
-        IWBN if complaints.c were more general-purpose.  */
-
       in_hash_table = maybe_add_script (pspace_info, opened, file, full_path,
                                        &script_language_python);
 
This page took 0.054095 seconds and 4 git commands to generate.