diff options
author | Doug Evans <xdje42@gmail.com> | 2013-11-29 12:34:32 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2013-11-29 12:34:32 -0800 |
commit | 7b2d3abff95a996c7e6e7cb64d806e1b9ab47aec (patch) | |
tree | 3fc93550e06e3831f116eb8335ae5fb5a83157a2 /gdb/python | |
parent | 256458bc0ed6b39c34afefb60d2b1009603fd62a (diff) | |
download | gdb-7b2d3abff95a996c7e6e7cb64d806e1b9ab47aec.zip gdb-7b2d3abff95a996c7e6e7cb64d806e1b9ab47aec.tar.gz gdb-7b2d3abff95a996c7e6e7cb64d806e1b9ab47aec.tar.bz2 |
* python/py-auto-load.c (source_section_scripts): Move comment to
more relevant location.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-auto-load.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/python/py-auto-load.c b/gdb/python/py-auto-load.c index c54e436..827918a 100644 --- a/gdb/python/py-auto-load.c +++ b/gdb/python/py-auto-load.c @@ -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); |