diff options
author | Fred Fish <fnf@specifix.com> | 1996-02-19 20:46:43 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-02-19 20:46:43 +0000 |
commit | 0708e99fc26bf43f65da5edce82e625d179e3b02 (patch) | |
tree | 06d847e10772019de7e4abf4176fffe0c7f10949 /gdb/dwarfread.c | |
parent | 21965655ed7206aad6ade08b05d981a65b228bd3 (diff) | |
download | gdb-0708e99fc26bf43f65da5edce82e625d179e3b02.zip gdb-0708e99fc26bf43f65da5edce82e625d179e3b02.tar.gz gdb-0708e99fc26bf43f65da5edce82e625d179e3b02.tar.bz2 |
* dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
for CORE_ADDR values.
(new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
* symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r-- | gdb/dwarfread.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index fb0234c..bdbd4ad 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -2586,10 +2586,10 @@ add_partial_symbol (dip, objfile) switch (dip -> die_tag) { case TAG_global_subroutine: - ADD_PSYMBOL_TO_LIST (dip -> at_name, strlen (dip -> at_name), - VAR_NAMESPACE, LOC_BLOCK, - objfile -> global_psymbols, - dip -> at_low_pc, cu_language, objfile); + ADD_PSYMBOL_ADDR_TO_LIST (dip -> at_name, strlen (dip -> at_name), + VAR_NAMESPACE, LOC_BLOCK, + objfile -> global_psymbols, + dip -> at_low_pc, cu_language, objfile); break; case TAG_global_variable: ADD_PSYMBOL_TO_LIST (dip -> at_name, strlen (dip -> at_name), @@ -2598,10 +2598,10 @@ add_partial_symbol (dip, objfile) 0, cu_language, objfile); break; case TAG_subroutine: - ADD_PSYMBOL_TO_LIST (dip -> at_name, strlen (dip -> at_name), - VAR_NAMESPACE, LOC_BLOCK, - objfile -> static_psymbols, - dip -> at_low_pc, cu_language, objfile); + ADD_PSYMBOL_ADDR_TO_LIST (dip -> at_name, strlen (dip -> at_name), + VAR_NAMESPACE, LOC_BLOCK, + objfile -> static_psymbols, + dip -> at_low_pc, cu_language, objfile); break; case TAG_local_variable: ADD_PSYMBOL_TO_LIST (dip -> at_name, strlen (dip -> at_name), @@ -2951,12 +2951,12 @@ new_symbol (dip, objfile) switch (dip -> die_tag) { case TAG_label: - SYMBOL_VALUE (sym) = dip -> at_low_pc; + SYMBOL_VALUE_ADDRESS (sym) = dip -> at_low_pc; SYMBOL_CLASS (sym) = LOC_LABEL; break; case TAG_global_subroutine: case TAG_subroutine: - SYMBOL_VALUE (sym) = dip -> at_low_pc; + SYMBOL_VALUE_ADDRESS (sym) = dip -> at_low_pc; SYMBOL_TYPE (sym) = lookup_function_type (SYMBOL_TYPE (sym)); SYMBOL_CLASS (sym) = LOC_BLOCK; if (dip -> die_tag == TAG_global_subroutine) |