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/dwarf2/call-site.h | |
parent | e30deeb0366a978bc45f8c021ef1e51f5e949c87 (diff) | |
download | gdb-1e73d09f86dd7a7e7bf24f54358095ff45e47c14.zip gdb-1e73d09f86dd7a7e7bf24f54358095ff45e47c14.tar.gz gdb-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/dwarf2/call-site.h')
-rw-r--r-- | gdb/dwarf2/call-site.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/dwarf2/call-site.h b/gdb/dwarf2/call-site.h index a397b8b..07257fa 100644 --- a/gdb/dwarf2/call-site.h +++ b/gdb/dwarf2/call-site.h @@ -59,7 +59,7 @@ struct call_site_target ADDRESSES, }; - void set_loc_physaddr (CORE_ADDR physaddr) + void set_loc_physaddr (unrelocated_addr physaddr) { m_loc_kind = PHYSADDR; m_loc.physaddr = physaddr; @@ -77,7 +77,7 @@ struct call_site_target m_loc.dwarf_block = dwarf_block; } - void set_loc_array (unsigned length, const CORE_ADDR *data) + void set_loc_array (unsigned length, const unrelocated_addr *data) { m_loc_kind = ADDRESSES; m_loc.addresses.length = length; @@ -102,7 +102,7 @@ private: union { /* Address. */ - CORE_ADDR physaddr; + unrelocated_addr physaddr; /* Mangled name. */ const char *physname; /* DWARF block. */ @@ -111,7 +111,7 @@ private: struct { unsigned length; - const CORE_ADDR *values; + const unrelocated_addr *values; } addresses; } m_loc; @@ -163,7 +163,7 @@ struct call_site_parameter struct call_site { - call_site (CORE_ADDR pc, dwarf2_per_cu_data *per_cu, + call_site (unrelocated_addr pc, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile) : per_cu (per_cu), per_objfile (per_objfile), m_unrelocated_pc (pc) {} @@ -177,7 +177,7 @@ struct call_site static hashval_t hash (const call_site *a) { - return a->m_unrelocated_pc; + return (hashval_t) a->m_unrelocated_pc; } static int @@ -233,7 +233,7 @@ struct call_site private: /* Unrelocated address of the first instruction after this call. */ - const CORE_ADDR m_unrelocated_pc; + const unrelocated_addr m_unrelocated_pc; public: /* * Describe DW_TAG_call_site's DW_TAG_formal_parameter. */ |