* alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
authorPierre Muller <muller@sourceware.org>
Fri, 10 Sep 2010 16:04:58 +0000 (16:04 +0000)
committerPierre Muller <muller@sourceware.org>
Fri, 10 Sep 2010 16:04:58 +0000 (16:04 +0000)
before cast to pointer to avoid warning.

gdb/ChangeLog
gdb/alpha-mdebug-tdep.c

index a1d695f..9a03b8d 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
+       before cast to pointer to avoid warning.
+
 2010-09-09  Kevin Buettner  <kevinb@redhat.com>
 
        * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
index 369b161..4dd0afc 100644 (file)
@@ -115,7 +115,7 @@ find_proc_desc (CORE_ADDR pc)
 
   if (sym)
     {
-      proc_desc = (struct mdebug_extra_func_info *) SYMBOL_VALUE (sym);
+      proc_desc = (struct mdebug_extra_func_info *) SYMBOL_VALUE_BYTES (sym);
 
       /* Correct incorrect setjmp procedure descriptor from the library
          to make backtrace through setjmp work.  */