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]

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


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 (齐尧)


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