This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [PATCH RFC] Convert function definitions to prototyped form


On Jul 24,  2:45pm, Andrew Cagney wrote:

> Did the problem with indentation get sorted?

Yes.

> From memory, the suggestion was to add the file indent.pro.

Right.  But that's not how I ended up doing it since it wasn't
possible to specify a custom indent.pro file from a command line
switch.

Instead, I put the list of types into the script.  Each time indent
gets called, a suitable set of -T switches are passed directly to
indent.  These types were generated by check-decls.  (Recall that
check-decls needs to find all of the types in order to create typedefs
for a C-program which checks the output of fix-decls.)

Going forward, someone (me perhaps) should add the appropriate command
line switch to indent so that we can specify a custom indent.pro file
for gdb instead of picking up the users .indent.pro.  We'll also need
a way of keeping gdb's indent.pro file current.

Kevin

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