aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-02-26 10:46:31 -0700
committerTom Tromey <tromey@adacore.com>2024-03-21 12:21:23 -0600
commit3984e52f7f4bca4641b2c59ba2730f71263ad97d (patch)
tree395c143d11d435e4cfc4e42dcd4bc5ae9b209454 /gdb/dwarf2
parentacaf48b921453c37fc2df4151699c912940bcd25 (diff)
downloadgdb-3984e52f7f4bca4641b2c59ba2730f71263ad97d.zip
gdb-3984e52f7f4bca4641b2c59ba2730f71263ad97d.tar.gz
gdb-3984e52f7f4bca4641b2c59ba2730f71263ad97d.tar.bz2
Use addrmap_fixed in a few spots
There are a few spots in the tree that use 'addrmap' where only an addrmap_fixed will ever really be seen. This patch changes this code to use the more specific type.
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r--gdb/dwarf2/cooked-index.h2
-rw-r--r--gdb/dwarf2/read.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2/cooked-index.h b/gdb/dwarf2/cooked-index.h
index 91419b7..1c8fb8f 100644
--- a/gdb/dwarf2/cooked-index.h
+++ b/gdb/dwarf2/cooked-index.h
@@ -362,7 +362,7 @@ private:
cooked_index_entry *m_main = nullptr;
/* The addrmap. This maps address ranges to dwarf2_per_cu_data
objects. */
- addrmap *m_addrmap = nullptr;
+ addrmap_fixed *m_addrmap = nullptr;
/* Storage for canonical names. */
std::vector<gdb::unique_xmalloc_ptr<char>> m_names;
};
diff --git a/gdb/dwarf2/read.h b/gdb/dwarf2/read.h
index 5ee7e09..73def88 100644
--- a/gdb/dwarf2/read.h
+++ b/gdb/dwarf2/read.h
@@ -536,7 +536,7 @@ public:
abstract_to_concrete;
/* The address map that is used by the DWARF index code. */
- struct addrmap *index_addrmap = nullptr;
+ addrmap_fixed *index_addrmap = nullptr;
};
/* An iterator for all_units that is based on index. This