This is the mail archive of the
mailing list for the GDB project.
[PATCH 00/15] Common code cleanups
- From: Gary Benson <gbenson at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 9 Jul 2014 11:37:20 +0100
- Subject: [PATCH 00/15] Common code cleanups
- Authentication-results: sourceware.org; auth=none
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?