aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@br.ibm.com>2008-01-03 21:30:13 +0000
committerThiago Jung Bauermann <bauerman@br.ibm.com>2008-01-03 21:30:13 +0000
commit82cf6c60c4bc7bb2d18eed69d5f61bfddde6e4f8 (patch)
treeff1c5051438e57a7627b6b69ad30639a3bbec03b /gdb/symtab.c
parent5dd15031dd5eb5694732e25f7e5838b53a45db67 (diff)
downloadgdb-82cf6c60c4bc7bb2d18eed69d5f61bfddde6e4f8.zip
gdb-82cf6c60c4bc7bb2d18eed69d5f61bfddde6e4f8.tar.gz
gdb-82cf6c60c4bc7bb2d18eed69d5f61bfddde6e4f8.tar.bz2
* symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
of SYMBOL_VALUE when working with function symbols.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index c95348b..2e0a9b7 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -2109,13 +2109,13 @@ find_pc_sect_line (CORE_ADDR pc, struct bfd_section *section, int notcurrent)
* 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);
}