[PATCH 06/25] Generate c for feature instead of tdesc

Eli Zaretskii eliz@gnu.org
Tue Jun 13 15:41:00 GMT 2017


> From: Yao Qi <qiyaoltc@gmail.com>
> Cc: gdb-patches@sourceware.org
> Date: Tue, 13 Jun 2017 16:31:16 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Sorry, I don't understand: built into GDB how?  The GDB in which the
> > user runs this command can then turn around and have the produced file
> > built into it?
> 
> Yes,
> We feed GDB the XML target description file, let GDB print the c file,
> and then include these generated c files in *-tdep.c.

But that means the produced file can only be used by rebuilding GDB,
doesn't it?  If so, the text should make this clear, I think.

(In general, since GDB is a compiled program which cannot easily be
modified without rebuilding it, I wonder how useful this feature will
be.  But I'll yield to your expertise on that.)



More information about the Gdb-patches mailing list