This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: New ARI web page, generated using script inside CVS tree in gdb/contrib/ari directory
- From: Pedro Alves <palves at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>, gdb at sourceware dot org
- Date: Mon, 12 Nov 2012 18:48:24 +0000
- Subject: Re: New ARI web page, generated using script inside CVS tree in gdb/contrib/ari directory
- References: <002701cdc0b9$542d2560$fc877020$@muller@ics-cnrs.unistra.fr> <20121112180707.GQ4847@adacore.com> <50A13D2C.7070207@redhat.com> <20121112183818.GR4847@adacore.com>
On 11/12/2012 06:38 PM, Joel Brobecker wrote:
>> strerror sounds like something gnulib might have a replacement for
>> too. Then we could get rid of safe_strerror, and just use strerror
>> everywhere.
>
> I had a look at that option, and I'm not sure whether it would work on
> Windows. But maybe I looked too quickly. If it works on windows, I am
> definitely in favor of that too.
Hmm, doesn't look like a full replacement. Ours uses FormatMessage
for errors unknown to the native strerror, while gnulib's
returns "(undocumented error %d)". Don't know if gnulib might be
interested in our version, though to me it sounds like our version is
more useful for Windows ports; it might be worth it to ask them and
contribute it.
--
Pedro Alves