]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: allow for cooked_index_shard::m_addrmap to be nullptr
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 9 Feb 2025 05:51:02 +0000 (00:51 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 10 Feb 2025 16:28:56 +0000 (11:28 -0500)
commitde33cf88daf58cf8322867389afa9bcf3e377696
tree1a1781e9d9f11d26c2e3a257e9eb1e82baecb294
parentad6dde5aaae846176fcc984e438ee7c187f27044
gdb/dwarf: allow for cooked_index_shard::m_addrmap to be nullptr

The following patch makes the .debug_names reader create multiple cooked
index shards, only one of them having an address map.  The others will
have a nullptr address map.

Change the code using cooked_index_shard::m_addrmap to account for the
fact that it can be nullptr.

Change-Id: Id05b974e661d901dd43bb5ecb3a8fcfc15abc7ed
Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/cooked-index.c
gdb/dwarf2/cooked-index.h
gdb/dwarf2/index-write.c