This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 00/15] Common code cleanups


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]