[PATCH] Include string headers in a configure test for GDB

Pedro Alves pedro@palves.net
Thu Sep 24 15:38:12 GMT 2020


On 9/24/20 4:15 PM, Simon Marchi wrote:

> Note that GDB is built in C++, where I am pretty sure we are guaranteed
> to have the functions you are looking for in "string.h".  So I think it
> would be safe to just include "string.h" and not care about the others.
> And this configure test should probably be written as C++, but that's
> another story.

Also GDB uses gnulib, so string.h is definitely available when GDB sources
are built, either from the system, or as a gnulib replacement.  However,
we don't put the gnulib headers in the include path when running
configure tests, I think.  Maybe we should.


More information about the Gdb-patches mailing list