[PATCH 00/15 v2] Common code cleanups

Gary Benson
2014-07-16T16:19:39Z

Hi all,

This series is version 2 of the common code cleanups patch I posted
last Wednesday. I'll repeat the description of the series from the
previous [PATCH 00/15] email:

The directories "common", "nat" and "target" contain code shared
between GDB and gdbserver. Each C file is built at least twice,
once for GDB and once for gdbserver, and many of the files use
"#ifdef GDBSERVER" to source headers from GDB or gdbserver as
appropriate. This means that while the code is shared, the
supporting definitions are not, and in some cases these are
different in non-trivial ways. In other places, GDBSERVER checks
are used to cope where GDB and gdbserver do the same thing in
different ways.

This series reduces the number of GDBSERVER checks from 34 to 11.
Tom Tromey started this work back in January, and I've updated it
and extended it a little. Most of the remaining checks are to
select the correct gnulib config header.

I've mailed details of changes I've made to the individual patches to
this list and to the reviewers who suggested them already, so I won't
go over them again.

Built and regtested on x86-64 RHEL6.5. mips-linux-watch.h changes
checked by cross-building gdbserver with the Sourcery CodeBench for
MIPS GNU/Linux toolchain.

Ok to commit?

Thanks,
Gary

--