aboutsummaryrefslogtreecommitdiff
path: root/gdb/psympriv.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-19 09:51:32 -0600
committerTom Tromey <tom@tromey.com>2023-03-28 15:12:44 -0600
commit1ee8702db9cb2a329c9df0938667e2415b0c9e46 (patch)
tree478f6ab50fb35d294fd697ba3faab685a8a21b87 /gdb/psympriv.h
parent584d0cdac2b1fee77adb587052decfce12077469 (diff)
downloadgdb-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/psympriv.h')
-rw-r--r--gdb/psympriv.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/psympriv.h b/gdb/psympriv.h
index 8fb595e2..8f059dc 100644
--- a/gdb/psympriv.h
+++ b/gdb/psympriv.h
@@ -44,24 +44,24 @@ struct partial_symbol
}
/* Return the unrelocated address of this partial symbol. */
- CORE_ADDR unrelocated_address () const
+ unrelocated_addr unrelocated_address () const
{
- return ginfo.value_address ();
+ return ginfo.unrelocated_address ();
}
/* Return the address of this partial symbol, relocated according to
the offsets provided in OBJFILE. */
CORE_ADDR address (const struct objfile *objfile) const
{
- return (ginfo.value_address ()
+ return (CORE_ADDR (ginfo.unrelocated_address ())
+ objfile->section_offsets[ginfo.section_index ()]);
}
/* Set the address of this partial symbol. The address must be
unrelocated. */
- void set_unrelocated_address (CORE_ADDR addr)
+ void set_unrelocated_address (unrelocated_addr addr)
{
- ginfo.set_value_address (addr);
+ ginfo.set_unrelocated_address (addr);
}
/* Note that partial_symbol does not derive from general_symbol_info
@@ -241,7 +241,7 @@ struct partial_symtab
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);