This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: duplicated code in gdb and gdbserver
On 01/08/2011 12:37 AM, Doug Evans wrote:
Another example is individual target support. E.g., merging common
bits of gdb's ${target}-nat.c files with gdbserver's ${target}-low.c
files.
On 01/08/2011 01:17 AM, Stan Shebs wrote:
> One thing that we could be doing in addition to moving code is to
> scrutinize gdb/*-nat.c and friends, and abstract out some API for any
> in-GDB-itself assumptions. Hopefully that will help to minimize the
> need for #ifdef GDBSERVER hacks as we refactor the code.
Doug and Stan,
Thanks for your pointers and suggestions. Looks like it is not a small
piece of work, and IMO, merging common parts of gdb's ${target}-nat.c
and gdbserver's ${target}-low.c can be a starting point. I'll write
patches for this.
--
Yao Qi