This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: MinGW build failure for GDB 8.2.90 with source-highlight
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>, Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 7 Mar 2019 17:11:19 +0000
- Subject: Re: MinGW build failure for GDB 8.2.90 with source-highlight
- References: <83r2bibvlv.fsf@gnu.org> <a1052036b5ace1d67f905d8ce61e0086@polymtl.ca>
On 03/07/2019 04:59 PM, Simon Marchi wrote:
> I don't recall what's the long term solution for this. We could use gnulib's namespace support [2], but the disadvantage is that we would need to use gnulib::some_function (assuming we name the namespace "gnulib") instead of just some_function to use the "fixed" version. If we use some_function directly, it will use the buggy version on those systems where it is buggy.
Wrap all of gdb in a namespace. Recall that this was what led to C++ wildmatching support.
Thanks,
Pedro Alves