]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: set m_top_level_die directly in read_cutu_die_from_dwo
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 17 Mar 2025 14:34:30 +0000 (10:34 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 18 Mar 2025 13:39:03 +0000 (09:39 -0400)
commit6eb9dab4c99725c1de4bccfeb99e766e7ee657a4
tree7d30e15adf6cc4021631665819a0f3e688bca7ae
parentaab6de1613df693059a6a2b505cc8f20d479d109
gdb/dwarf: set m_top_level_die directly in read_cutu_die_from_dwo

read_cutu_die_from_dwo currently returns the dwo's top-level DIE through
a parameter.  Following the previous patch, all code paths end up
setting m_top_level_die.  Simplify this by having read_cutu_die_from_dwo
set m_top_level_die directly.  I think it's easier to understand,
because there's one less indirection to follow.

Change-Id: Ib659f1d2e38501a8fe2b5dd0ca2add3ef55e8d60
Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/read.c
gdb/dwarf2/read.h