This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] New maintenance print typechain command.


On Wed, Apr 04, 2007 at 02:37:18PM +0000, lode lathouwers wrote:
> hi
> this is my first patch ever to an open source project , so probably I am doing some things wrong here ...
> Anyway attached you find some changes to add an extra print typechain command, which is like typechain, but instead of printing the internal nodes in the raw format it prints them in c-format.
> This is handy when we want to extract some type declarations from a series of headerfiles, and generate a header file only containing the declarations for those types. Afterwards, we could for example use the file in swig to generate interfaces towards other programming languages.

Do you mean you're parsing the output of the maintenance command
to create your header?  I think that's a bad idea; the maint commands
are intended for GDB developers to use while debugging GDB.

Why can't you get what you need from 'info types'?

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]