[PATCH 00/13] Include some headers in common-defs.h
Tue Jul 29 15:11:00 GMT 2014
This series builds on my "config.h rationalization" series that is
currently under review .
Each patch adds one #include line to common-defs.h and removes all
other inclusions of that file in all files that include either defs.h
or server.h. Patches 1-11 deal with files that are already included
by both defs.h and server.h; these patches don't really change
anything about the build. Patches 12 and 13 add gdb_assert.h and
string.h respectively. These are included by server.h but not by
defs.h, but both are included in hundreds of files so I think they
are good candidates for global inclusion.
There are three more files that are included by both defs.h and
server.h that I have not dealt with in this series. errno.h and
alloca.h are both handled completely differently by defs.h and
server.h: moving these headers to common-defs.h should be done, but
will require merging the configury. The final file, print-utils.h,
is included indirectly by both defs.h and server.h but cannot be
merged without some of the "Common code cleanups" series . That
needs some rewriting, so I'll add that to common-defs.h as part of
the next version of that series.
Is this ok to commit?
More information about the Gdb-patches