Re: [PATCH 2/2] gdb/block: add assert in block_iterator::compunit_symtab

Tom Tromey
2026-02-06T16:44:23Z

>>>>> "Simon" == simon marchi <simon.marchi@polymtl.ca> writes:

Simon> From: Simon Marchi <simon.marchi@efficios.com>
Simon> Verify that the compunit is only accessed when the iterator is in the
Simon> mode where that field makes sense.

Simon> We could also set compunit_symtab_ even in "single block" mode, it
Simon> wouldn't hurt, but it would not be useful either.

Thank you for doing this.
Approved-By: Tom Tromey <tom@tromey.com>

Tom