From fd20d931f1d9b7bfb11e76f8770453a7244db51e Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 16 May 2011 16:33:57 +0000 Subject: [PATCH] * python/py-auto-load.c (source_section_scripts): Mention objfile name in warning. --- gdb/ChangeLog | 5 +++++ gdb/python/py-auto-load.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 438be9b..677970d 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 4024fd3..619d995 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; -- 2.7.4