Re: [RFA v2 1/4] C++-ify break-catch-sig

Tom Tromey
2017-07-22T03:53:40Z

>>>>> "Sergio" == Sergio Durigan Junior <sergiodj@redhat.com> writes:

>> - if (c->signals_to_be_caught)
>> + if (!c->signals_to_be_caught.empty ())
>> {
>> - int i;
>> - gdb_signal_type iter;
>> -
>> - for (i = 0;
>> - VEC_iterate (gdb_signal_type, c->signals_to_be_caught, i, iter);
>> - i++)
>> + for (gdb_signal iter : c->signals_to_be_caught)
>> if (signal_number == iter)
>> return 1;
>> /* Not the same. */
>> - gdb_assert (!iter);

Sergio> I don't really understand what this assert was checking. In what
Sergio> situation would iter == 0?

Yeah, I don't know either.

Tom