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: Pedro Alves <palves at redhat dot com>
- To: Antoine Tremblay <antoine dot tremblay at ericsson dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 1 Sep 2016 14:09:12 +0100
- 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>
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}".
Thanks,
Pedro Alves