[PATCH 1/3 v4] Introduce common/errors.h

Gary Benson gbenson@redhat.com
Fri Jul 25 11:38:00 GMT 2014


Pedro Alves wrote:
> On 07/25/2014 09:36 AM, Gary Benson wrote:
> > I'm working on this now.  My plan is to have gdb/common/common-defs.h
> > (which includes config.h and the correct gnulib config.h) and have
> > defs.h and server.h include common-defs.h as the first line.  By the
> > end of that series most every file will include defs.h or server.h
> > and no file will include config.h.
> 
> I think you meant, that files in gdb will include defs.h, files in
> gdbserver will include server.h, and files in the shared directories
> will include common-defs.h as the first line.

Yes, eventually.  I plan to submit an initial series, in which
common-defs.h only includes the two config.h files, and any files
not including either defs.h or server.h as their first line will
be fixed up.  If that proves acceptable, I'll submit one or more
further series to move the various includes currently common to
defs.h and server.h into common-defs.h, and finally something to
switch common/target/nat files over to common-defs.h.  That last
bit may need to end up mixed in with parts of the common-cleanups
series.

Cheers,
Gary

-- 
http://gbenson.net/



More information about the Gdb-patches mailing list