This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] Fix lwp_suspend/unsuspend imbalance in linux_wait_1
- From: Antoine Tremblay <antoine dot tremblay at ericsson dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Antoine Tremblay <antoine dot tremblay at ericsson dot com>, <gdb-patches at sourceware dot org>
- Date: Thu, 1 Sep 2016 11:12:17 -0400
- Subject: Re: [PATCH 1/2] Fix lwp_suspend/unsuspend imbalance in linux_wait_1
- Authentication-results: sourceware.org; auth=none
- References: <20160831171406.24057-1-antoine.tremblay@ericsson.com> <e2de1080-f22a-7536-7ce2-5c003829cbb8@redhat.com> <wwoky43cygj4.fsf@ericsson.com> <367f43f2-aacf-672f-5a1f-2d7b16381e85@redhat.com> <wwokvaygyex7.fsf@ericsson.com> <wwokshtkycj6.fsf@ericsson.com> <8a5b9633-43bc-6032-efad-dd64fc19bdd7@redhat.com>
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