From: Doug Evans Date: Mon, 16 May 2011 16:33:57 +0000 (+0000) Subject: * python/py-auto-load.c (source_section_scripts): Mention objfile X-Git-Tag: sid-snapshot-20110601~170 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fd20d931f1d9b7bfb11e76f8770453a7244db51e;p=thirdparty%2Fbinutils-gdb.git * python/py-auto-load.c (source_section_scripts): Mention objfile name in warning. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 438be9b0868..677970d2eb2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-05-16 Doug Evans + + * python/py-auto-load.c (source_section_scripts): Mention objfile + name in warning. + 2011-05-15 Doug Evans * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function. diff --git a/gdb/python/py-auto-load.c b/gdb/python/py-auto-load.c index 4024fd3f489..619d9953f18 100644 --- a/gdb/python/py-auto-load.c +++ b/gdb/python/py-auto-load.c @@ -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;