[PATCH 00/15] Common code cleanups

Gary Benson gbenson@redhat.com
Wed Jul 9 11:25:00 GMT 2014


Hi all,

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.

Built and regtested on x86-64 RHEL6.5.  gdbserver cross-built on
linux-mips to check the mips-linux-watch.h changes.

Ok to commit?

Thanks,
Gary

--
http://gbenson.net/



More information about the Gdb-patches mailing list