Re: [PATCH 1/2] Fix lwp_suspend/unsuspend imbalance in linux_wait_1

Antoine Tremblay
2016-09-01T15:12:35Z

Pedro Alves writes:

> On 08/31/2016 08:16 PM, Antoine Tremblay wrote:
>
>> BTW I always wanted to do this but never get to it, but it seems to me
>> that it would be nice to have a --fatal-asserts flags in GDB that would
>> create a core on assert.
>>
>> That way we could get a backtrace of the assert and know if we fixed a
>> particular issue like this case.
>
> I agree.
>
> Calling exit() as done today is fatal too, so that's a bit ambiguous.
> Maybe follow along gdb's "maintenance set internal-error {corefile,quit}",
> and call it "--internal-error={corefile,quit}".
>

Good idea and the same with --internal-warning

I'll add it as such to my todo list.

Thanks,
Antoine