This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA-v2] ARI fixes: Remove some sprintf calls
- From: Tom Tromey <tromey 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>, "'Andreas Schwab'" <schwab at linux-m68k dot org>, gdb-patches at sourceware dot org
- Date: Mon, 12 Nov 2012 09:27:10 -0700
- Subject: Re: [RFA-v2] ARI fixes: Remove some sprintf calls
- References: <4297.05661158568$1352387430@news.gmane.org> <87d2znhj7t.fsf@fleche.redhat.com> <000001cdc061$dad58740$908095c0$@muller@ics-cnrs.unistra.fr> <20121112160741.GT5103@adacore.com>
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
Joel> I'm wondering if there is any way to provoke an error if we ever
Joel> use sprintf again... I am asking because I know that it's easy to
Joel> ignore the ARI. I kind of remember not being able to do that, but
Joel> perhaps wrong memory. #poison, maybe?
If all uses are removed we could probably use #pragma GCC poison in
defs.h.
Tom