[PATCH] Fix gdb crash due to SIGPIPE when the compile command fails

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Tue Jun 15 11:10:25 GMT 2021


Hi Tom,

> Rainer> that's what I've been using myself to fix the build locally.  However,
> Rainer> as I said I'm completely uncertain if that's the right fix, especially
> Rainer> given that gdb/compile files don't include any system headers directly.
>
> That must just be happenstance.
>
> Normally, a universally-available system header can be included
> anywhere.  Sometimes there is a wrapper header, and so in these cases
> one ought to use the wrapper instead.  There's no particular ordering of
> headers, except that defs.h (gdbsupport and gdbserver have similar, but
> differently-named headers) must come first. (We looked into a script to
> reorder headers but I never finished ironing out the bugs.)

ah, thanks for the clarification.  I guess I must have been thinking of
gcc's system.h which centralizes the inclusion of many system headers,
dealing with platform-specific quirks along the way.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


More information about the Gdb-patches mailing list