This is the mail archive of the
mailing list for the GDB project.
Re: [RFA] let record_resume fail immediately on error
>>>>> ">" == Hui Zhu <firstname.lastname@example.org> writes:
>> It add a new argument "catch" to do_record_message. If catch is true,
>> it will call "record_message" with catch errors. If not, it will call
>> "record_message" directly.
I don't like this much either. It is trivial for callers that want to
catch errors to catch them. They can use TRY_CATCH or catch_errors(...,
Callers that don't want to catch errors should just call
do_record_message directly. This is both for type safety and also
because such calls are plain old C, and should therefore look like it.