diff options
author | Tristan Gingold <gingold@adacore.com> | 2012-02-01 16:20:50 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2012-02-01 16:20:50 +0000 |
commit | 92b2bd140f2a8ed7ed4471ab294f9debd91ba118 (patch) | |
tree | d95ee471153bcb519fdbc19d1f79aacaa653f347 | |
parent | b54b9617e3e0d8ee38d94a2282a29cce815dd6bb (diff) | |
download | gdb-92b2bd140f2a8ed7ed4471ab294f9debd91ba118.tar.gz |
2012-02-01 Tristan Gingold <gingold@adacore.com>
* libunwind-frame.c (libunwind_load): Display message if dlopen
failed.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/libunwind-frame.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 055fdd2ac54..de161de50d4 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 94449b0c698..893fe1ee027 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. */ |