[PATCH 00/25 V2] Make GDB builtin target descriptions more flexible

Yao Qi qiyaoltc@gmail.com
Wed Jun 28 08:28:00 GMT 2017


Alan Hayward <Alan.Hayward@arm.com> writes:

Hi Alan,

> Parts of gdbserver/linux-x86-tdesc.c is duplicated in i386-linux-tdep.c,
> and the same for other -tdesc.c files.
> Would it be better to move the -tdesc.c files into a common directory,
> maybe nat/ ?

Yes, there is a duplication, Walfred asked it too.  See my reply
https://sourceware.org/ml/gdb-patches/2017-06/msg00758.html

The code creating target descriptions for each target should be shared
somewhere, in arch/?.  We need to change each backend to migrate to the
new style of creating target descriptions, and share code with GDBserver
if needed.  This project needs help converting interesting backends to
the new style of target description creation.

>
> How is linux-x86-tdesc-ipa.o built? I can see the entry in configure.srv,
> but I can’t find a .c either in my src or build directory.

linux-x86-tdesc-ipa.o is built from linux-x86-tdesc.c for IPA.

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list