]> Git Repo - binutils.git/commitdiff
2012-02-01 Tristan Gingold <[email protected]>
authorTristan Gingold <[email protected]>
Wed, 1 Feb 2012 16:20:51 +0000 (16:20 +0000)
committerTristan Gingold <[email protected]>
Wed, 1 Feb 2012 16:20:51 +0000 (16:20 +0000)
* libunwind-frame.c (libunwind_load): Display message if dlopen
failed.

gdb/ChangeLog
gdb/libunwind-frame.c

index 055fdd2ac54fbff1ae8ce99ebd024fa430d662e0..de161de50d420348725d865495a656883d307c3a 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-01  Tristan Gingold  <[email protected]>
+
+       * libunwind-frame.c (libunwind_load): Display message if dlopen
+       failed.
+
 2012-02-01  Gary Benson  <[email protected]>
 
        * symtab.h (symbol_name_match_p_ftype): New typedef.
index 94449b0c698d0dc5678f6f4a82833a3919665b3d..893fe1ee0277deda2c1c8365f8382137bc1278fa 100644 (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.  */
 
This page took 0.029133 seconds and 4 git commands to generate.