2012-02-01 Tristan Gingold <gingold@adacore.com>

* libunwind-frame.c (libunwind_load): Display message if dlopen
	failed.
This commit is contained in:
Tristan Gingold 2012-02-01 16:20:51 +00:00
parent f20bd22b62
commit 47c1316cb5
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-02-01 Tristan Gingold <gingold@adacore.com>
* libunwind-frame.c (libunwind_load): Display message if dlopen
failed.
2012-02-01 Gary Benson <gbenson@redhat.com>
* symtab.h (symbol_name_match_p_ftype): New typedef.

View File

@ -508,7 +508,11 @@ libunwind_load (void)
handle = dlopen (LIBUNWIND_SO, RTLD_NOW);
if (handle == NULL)
return 0;
{
fprintf_unfiltered (gdb_stderr, _("[GDB failed to load %s: %s]\n"),
LIBUNWIND_SO, dlerror ());
return 0;
}
/* Initialize pointers to the dynamic library functions we will use. */