2008-01-03 Thiago Jung Bauermann * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead of SYMBOL_VALUE when working with function symbols. Index: src-git/gdb/symtab.c =================================================================== --- src-git.orig/gdb/symtab.c 2008-01-03 15:13:59.000000000 -0200 +++ src-git/gdb/symtab.c 2008-01-03 15:14:42.000000000 -0200 @@ -2109,13 +2109,13 @@ find_pc_sect_line (CORE_ADDR pc, struct * So I commented out the warning. RT */ /* warning ("In stub for %s; unable to find real function/line info", SYMBOL_LINKAGE_NAME (msymbol)) */ ; /* fall through */ - else if (SYMBOL_VALUE (mfunsym) == SYMBOL_VALUE (msymbol)) + else if (SYMBOL_VALUE_ADDRESS (mfunsym) == SYMBOL_VALUE_ADDRESS (msymbol)) /* Avoid infinite recursion */ /* See above comment about why warning is commented out */ /* warning ("In stub for %s; unable to find real function/line info", SYMBOL_LINKAGE_NAME (msymbol)) */ ; /* fall through */ else - return find_pc_line (SYMBOL_VALUE (mfunsym), 0); + return find_pc_line (SYMBOL_VALUE_ADDRESS (mfunsym), 0); }