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/psymtab.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/psymtab.c')
-rw-r--r-- | gdb/psymtab.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 484199b..c742807 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -675,7 +675,8 @@ print_partial_symbols (struct gdbarch *gdbarch, struct objfile *objfile, break; } gdb_puts (", ", outfile); - gdb_puts (paddress (gdbarch, p->unrelocated_address ()), outfile); + gdb_puts (paddress (gdbarch, CORE_ADDR (p->unrelocated_address ())), + outfile); gdb_printf (outfile, "\n"); } } @@ -1212,7 +1213,7 @@ partial_symtab::add_psymbol (gdb::string_view name, bool copy_name, enum address_class theclass, short section, psymbol_placement where, - CORE_ADDR coreaddr, + unrelocated_addr coreaddr, enum language language, psymtab_storage *partial_symtabs, struct objfile *objfile) |