From 37049e3199b0ca9c580128979244f8306a284cad Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Fri, 10 Sep 2010 16:04:58 +0000 Subject: [PATCH] * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro before cast to pointer to avoid warning. --- gdb/ChangeLog | 5 +++++ gdb/alpha-mdebug-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a1d695fb3d3..9a03b8ddae8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-09-10 Pierre Muller + + * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro + before cast to pointer to avoid warning. + 2010-09-09 Kevin Buettner * v850-tdep.c (v850_gdbarch_init): Change the v850's `char' diff --git a/gdb/alpha-mdebug-tdep.c b/gdb/alpha-mdebug-tdep.c index 369b161839e..4dd0afcd36b 100644 --- a/gdb/alpha-mdebug-tdep.c +++ b/gdb/alpha-mdebug-tdep.c @@ -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. */ -- 2.30.2