Fix sol-thread.c build failure.
authorJoel Brobecker <brobecker@adacore.com>
Thu, 6 Mar 2014 15:57:29 +0000 (10:57 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Thu, 6 Mar 2014 16:04:58 +0000 (08:04 -0800)
Some updates where needed after the minimal symbol handling got changed
a little. This patch makes those changes.

gdb/ChangeLog:

        * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
        (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
        SYMBOL_VALUE_ADDRESS.
        (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.

gdb/ChangeLog
gdb/sol-thread.c

index d65f94a0e887b8355d5b21427e46c23f00fc37c2..760dcb13f7ed1addc74d79f68f9b373b04593ec8 100644 (file)
@@ -1,3 +1,10 @@
+2014-03-06  Joel Brobecker  <brobecker@adacore.com>
+
+       * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
+       (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
+       SYMBOL_VALUE_ADDRESS.
+       (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
+
 2014-03-06  Yao Qi  <yao@codesourcery.com>
 
        * breakpoint.c (get_tracepoint_by_number): Remove argument
index 599ef6427ab5645b18bc240a65515f2aa07a670b..81a6915e3813d1b3a913787ea57c932f28c2519b 100644 (file)
@@ -66,6 +66,9 @@
 #include "observer.h"
 #include <string.h>
 #include "procfs.h"
+#include "symtab.h"
+#include "minsyms.h"
+#include "objfiles.h"
 
 struct target_ops sol_thread_ops;
 
@@ -768,7 +771,7 @@ ps_pglobal_lookup (gdb_ps_prochandle_t ph, const char *ld_object_name,
   if (!ms.minsym)
     return PS_NOSYM;
 
-  *ld_symbol_addr = SYMBOL_VALUE_ADDRESS (ms.minsym);
+  *ld_symbol_addr = BMSYMBOL_VALUE_ADDRESS (ms);
   return PS_OK;
 }
 
@@ -1140,7 +1143,7 @@ info_cb (const td_thrhandle_t *th, void *s)
 
          printf_filtered ("   startfunc=%s",
                           msym.minsym
-                          ? SYMBOL_PRINT_NAME (msym.minsym)
+                          ? MSYMBOL_PRINT_NAME (msym.minsym)
                           : paddress (target_gdbarch (), ti.ti_startfunc));
        }
 
@@ -1152,7 +1155,7 @@ info_cb (const td_thrhandle_t *th, void *s)
 
          printf_filtered ("   sleepfunc=%s",
                           msym.minsym
-                          ? SYMBOL_PRINT_NAME (msym.minsym)
+                          ? MSYMBOL_PRINT_NAME (msym.minsym)
                           : paddress (target_gdbarch (), ti.ti_pc));
        }