Hi, re. "duplicated code in gdb and gdbserver" http://sourceware.org/ml/gdb-patches/2011-01/msg00153.html I propose to move common code to dir common/, and build files in it to libcommon.a, which can be used by both gdb and gdbserver. tdep code can be the first batch to move to common/ dir, and different object files are selected to be archived into libcommon.a according to configure result. In order to achieve that, configure.ac and Makefile.in will be created in common/ dir. In this patch, there is *no* change related to tdep part, but build signals.c into libcommon.a only. With this patch, we can move common tdep code into libcommon.a more easily in the future. If this change is acceptable, I'll start on i386 tdep code as a "proof of concept", to move some common code in i386-nat.c and i386-low.c into i386-common.c. Once it is done, some target-independent part of code, such as functions in regcache.c and infrun.c, can be moved into libcommon.a. Comments are welcome. -- Yao Qi