diff options
author | Tom Tromey <tromey@redhat.com> | 2008-10-01 16:56:52 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2008-10-01 16:56:52 +0000 |
commit | 712f90be028d481f1d2151824f2b4e3f75263c00 (patch) | |
tree | bc570a9ee15b282467932a3133b69a61eae40149 /gdb/symtab.c | |
parent | 87f67dbac2c40477b490e0eb1c5fa6f275d60bba (diff) | |
download | gdb-712f90be028d481f1d2151824f2b4e3f75263c00.zip gdb-712f90be028d481f1d2151824f2b4e3f75263c00.tar.gz gdb-712f90be028d481f1d2151824f2b4e3f75263c00.tar.bz2 |
* symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
(find_pc_sect_symtab): Likewise.
* symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
* solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
MSYMBOL_TYPE, not SYMBOL_TYPE.
* parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
* objc-lang.c (find_methods): Use MSYMBOL_TYPE.
* minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
MSYMBOL_TYPE.
* m2-exp.y (yylex): Use SYMBOL_CLASS.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 437d414..1cbd6e0 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -859,11 +859,11 @@ find_pc_sect_psymtab (CORE_ADDR pc, struct obj_section *section) not include the data ranges. */ msymbol = lookup_minimal_symbol_by_pc_section (pc, section); if (msymbol - && (msymbol->type == mst_data - || msymbol->type == mst_bss - || msymbol->type == mst_abs - || msymbol->type == mst_file_data - || msymbol->type == mst_file_bss)) + && (MSYMBOL_TYPE (msymbol) == mst_data + || MSYMBOL_TYPE (msymbol) == mst_bss + || MSYMBOL_TYPE (msymbol) == mst_abs + || MSYMBOL_TYPE (msymbol) == mst_file_data + || MSYMBOL_TYPE (msymbol) == mst_file_bss)) return NULL; /* Try just the PSYMTABS_ADDRMAP mapping first as it has better granularity @@ -1993,11 +1993,11 @@ find_pc_sect_symtab (CORE_ADDR pc, struct obj_section *section) on the partial_symtab's texthigh and textlow. */ msymbol = lookup_minimal_symbol_by_pc_section (pc, section); if (msymbol - && (msymbol->type == mst_data - || msymbol->type == mst_bss - || msymbol->type == mst_abs - || msymbol->type == mst_file_data - || msymbol->type == mst_file_bss)) + && (MSYMBOL_TYPE (msymbol) == mst_data + || MSYMBOL_TYPE (msymbol) == mst_bss + || MSYMBOL_TYPE (msymbol) == mst_abs + || MSYMBOL_TYPE (msymbol) == mst_file_data + || MSYMBOL_TYPE (msymbol) == mst_file_bss)) return NULL; /* Search all symtabs for the one whose file contains our address, and which |