diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-19 09:51:32 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-28 15:12:44 -0600 |
commit | 1ee8702db9cb2a329c9df0938667e2415b0c9e46 (patch) | |
tree | 478f6ab50fb35d294fd697ba3faab685a8a21b87 /gdb/xcoffread.c | |
parent | 584d0cdac2b1fee77adb587052decfce12077469 (diff) | |
download | gdb-1ee8702db9cb2a329c9df0938667e2415b0c9e46.zip gdb-1ee8702db9cb2a329c9df0938667e2415b0c9e46.tar.gz gdb-1ee8702db9cb2a329c9df0938667e2415b0c9e46.tar.bz2 |
Use unrelocated_addr in psymbols
This changes psymbols themselves to use unrelocated_addr. This
transform is largely mechanical. I don't think it finds any bugs.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index ff46cd5..cbd427f 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -2499,7 +2499,7 @@ scan_xcoff_symtab (minimal_symbol_reader &reader, true, VAR_DOMAIN, LOC_STATIC, SECT_OFF_DATA (objfile), psymbol_placement::STATIC, - symbol.n_value, + unrelocated_addr (symbol.n_value), psymtab_language, partial_symtabs, objfile); continue; @@ -2512,7 +2512,7 @@ scan_xcoff_symtab (minimal_symbol_reader &reader, true, VAR_DOMAIN, LOC_STATIC, SECT_OFF_DATA (objfile), psymbol_placement::GLOBAL, - symbol.n_value, + unrelocated_addr (symbol.n_value), psymtab_language, partial_symtabs, objfile); continue; @@ -2532,7 +2532,8 @@ scan_xcoff_symtab (minimal_symbol_reader &reader, p - namestring), true, STRUCT_DOMAIN, LOC_TYPEDEF, -1, psymbol_placement::STATIC, - 0, psymtab_language, + unrelocated_addr (0), + psymtab_language, partial_symtabs, objfile); if (p[2] == 't') { @@ -2541,7 +2542,8 @@ scan_xcoff_symtab (minimal_symbol_reader &reader, p - namestring), true, VAR_DOMAIN, LOC_TYPEDEF, -1, psymbol_placement::STATIC, - 0, psymtab_language, + unrelocated_addr (0), + psymtab_language, partial_symtabs, objfile); p += 1; } @@ -2555,7 +2557,8 @@ scan_xcoff_symtab (minimal_symbol_reader &reader, p - namestring), true, VAR_DOMAIN, LOC_TYPEDEF, -1, psymbol_placement::STATIC, - 0, psymtab_language, + unrelocated_addr (0), + psymtab_language, partial_symtabs, objfile); } check_enum: @@ -2618,7 +2621,8 @@ scan_xcoff_symtab (minimal_symbol_reader &reader, pst->add_psymbol (gdb::string_view (p, q - p), true, VAR_DOMAIN, LOC_CONST, -1, psymbol_placement::STATIC, - 0, psymtab_language, + unrelocated_addr (0), + psymtab_language, partial_symtabs, objfile); /* Point past the name. */ p = q; @@ -2638,7 +2642,8 @@ scan_xcoff_symtab (minimal_symbol_reader &reader, p - namestring), true, VAR_DOMAIN, LOC_CONST, -1, psymbol_placement::STATIC, - 0, psymtab_language, + unrelocated_addr (0), + psymtab_language, partial_symtabs, objfile); continue; @@ -2653,7 +2658,7 @@ scan_xcoff_symtab (minimal_symbol_reader &reader, true, VAR_DOMAIN, LOC_BLOCK, SECT_OFF_TEXT (objfile), psymbol_placement::STATIC, - symbol.n_value, + unrelocated_addr (symbol.n_value), psymtab_language, partial_symtabs, objfile); continue; @@ -2680,7 +2685,7 @@ scan_xcoff_symtab (minimal_symbol_reader &reader, true, VAR_DOMAIN, LOC_BLOCK, SECT_OFF_TEXT (objfile), psymbol_placement::GLOBAL, - symbol.n_value, + unrelocated_addr (symbol.n_value), psymtab_language, partial_symtabs, objfile); continue; |