diff options
author | Tom Tromey <tromey@adacore.com> | 2023-04-20 06:32:26 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-06-05 09:59:18 -0600 |
commit | 1e73d09f86dd7a7e7bf24f54358095ff45e47c14 (patch) | |
tree | 9aea231d0874a078a2aa83e37eb4a57c4e9f4b0c /gdb/symtab.c | |
parent | e30deeb0366a978bc45f8c021ef1e51f5e949c87 (diff) | |
download | binutils-1e73d09f86dd7a7e7bf24f54358095ff45e47c14.zip binutils-1e73d09f86dd7a7e7bf24f54358095ff45e47c14.tar.gz binutils-1e73d09f86dd7a7e7bf24f54358095ff45e47c14.tar.bz2 |
Use unrelocated_addr in the DWARF reader
This changes various spots in the DWARF reader to use
unrelocated_addr.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 59bdc00..e3030e4 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -344,7 +344,7 @@ compunit_symtab::find_call_site (CORE_ADDR pc) const return nullptr; CORE_ADDR delta = this->objfile ()->text_section_offset (); - CORE_ADDR unrelocated_pc = pc - delta; + unrelocated_addr unrelocated_pc = (unrelocated_addr) (pc - delta); struct call_site call_site_local (unrelocated_pc, nullptr, nullptr); void **slot @@ -360,7 +360,8 @@ compunit_symtab::find_call_site (CORE_ADDR pc) const if (pc == new_pc) return nullptr; - call_site new_call_site_local (new_pc - delta, nullptr, nullptr); + unrelocated_pc = (unrelocated_addr) (new_pc - delta); + call_site new_call_site_local (unrelocated_pc, nullptr, nullptr); slot = htab_find_slot (m_call_site_htab, &new_call_site_local, NO_INSERT); if (slot == nullptr) return nullptr; |