This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Debugging dump support for gengtype and some cleanups
- From: Basile Starynkevitch <basile at starynkevitch dot net>
- To: Laurynas Biveinis <laurynas dot biveinis at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 23 Apr 2010 14:35:47 +0200
- Subject: Re: [PATCH] Debugging dump support for gengtype and some cleanups
- References: <v2sd1e3ff2b1004210622idae77dbdrad50f8689791f171@mail.gmail.com> <i2kd1e3ff2b1004230520zd84dc63fx55c3279f6d38769b@mail.gmail.com>
Laurynas Biveinis wrote:
[Reposting without sample debugging output attached, which made the
previous attempt to send it silently rejected]
This adds a new command line option -d for gengtype that makes it to
dump (in an ad hoc format) its internal data structures to stdout. It
is useful in finding out why some data types do not appear in gengtype
output files, or why some do when they shouldn't.
I hope this patch would be approved. I find it nice.
Maybe a future improvement suggestion would be to parse in a more
GNU-ish manner the gengtype program arguments. The current argument
parsing is too ad-hoc. But this can be done in a near future (when we
will improve gengtype to dump & reload information to be able to have
plugin using gengtype without requiring GCC source & build trees).
Cheers.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***