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

Simon Marchi
2026-02-06T19:02:34Z

On 2026-02-06 11:43, Tom Tromey wrote:
>>>>>> "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

Thanks to all, I will push both patches.

Simon