aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-02-01 16:20:51 +0000
committerTristan Gingold <gingold@adacore.com>2012-02-01 16:20:51 +0000
commit47c1316cb5592dd623fe21ea098979f667c562a4 (patch)
tree8c2a17f13c215c909b2fb2ade21036033422d705 /gdb
parentf20bd22b62754edc59f437e664f8d730d442b5f6 (diff)
downloadfsf-binutils-gdb-47c1316cb5592dd623fe21ea098979f667c562a4.zip
fsf-binutils-gdb-47c1316cb5592dd623fe21ea098979f667c562a4.tar.gz
fsf-binutils-gdb-47c1316cb5592dd623fe21ea098979f667c562a4.tar.bz2
2012-02-01 Tristan Gingold <gingold@adacore.com>
* libunwind-frame.c (libunwind_load): Display message if dlopen failed.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/libunwind-frame.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 055fdd2..de161de 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/libunwind-frame.c b/gdb/libunwind-frame.c
index 94449b0..893fe1e 100644
--- a/gdb/libunwind-frame.c
+++ b/gdb/libunwind-frame.c
@@ -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. */