[PATCH] Fix gdb crash due to SIGPIPE when the compile command fails
Bernd Edlinger
bernd.edlinger@hotmail.de
Sat Jun 5 11:44:03 GMT 2021
On 6/4/21 3:39 PM, Tom Tromey wrote:
>>>>>> "Bernd" == Bernd Edlinger <bernd.edlinger@hotmail.de> writes:
>
> Bernd> I believe it is right to avoid the SIGPIPE before calling the plugin,
> Bernd> instead of doing that in gcc-trunk, since we don't know which version
> Bernd> we will be calling, and all versions I tried have failed like this.
>
> That seems fine, but I think it would be better to install the handler
> just when working with the plugin, and then uninstall it afterward, sort
> of like what class scoped_ignore_sigttou does.
>
Okay, done, that works for me.
Is this OK?
Thanks
Bernd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-gdb-crash-due-to-SIGPIPE-when-the-compile-comman.patch
Type: text/x-patch
Size: 1833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/gdb-patches/attachments/20210605/56023481/attachment.bin>
More information about the Gdb-patches
mailing list