Use target_desc fields expedite_regs and xmltarget ifndef IN_PROCESS_AGENT
authorYao Qi <yao.qi@linaro.org>
Thu, 29 Jun 2017 11:41:50 +0000 (12:41 +0100)
committerYao Qi <yao.qi@linaro.org>
Thu, 29 Jun 2017 11:41:50 +0000 (12:41 +0100)
commitadc764e7d217d3e56af988ce20cedc98d8c4cc73
tree365d062bb76d9eb07ca1c8a557459dcfd514873f
parentec1acaba1381d0196c45965a7db9942b67fbd88d
Use target_desc fields expedite_regs and xmltarget ifndef IN_PROCESS_AGENT

struct target_desc is used by both GDBserver and IPA, but fields
expedite_regs and xmltarget are only used in GDBserver, so this patch wraps
these two fields by ifndef IN_PROCESS_AGENT.  This patch also changes
regformats/regdat.sh to generate .c files in this way too.

gdb/gdbserver:

2017-06-29  Yao Qi  <yao.qi@linaro.org>

* tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
Remove.
[IN_PROCESS_AGENT] <xmltarget>: Likewise.

gdb:

2017-06-29  Yao Qi  <yao.qi@linaro.org>

* regformats/regdat.sh: Generate code with
"ifndef IN_PROCESS_AGENT".
gdb/ChangeLog
gdb/gdbserver/ChangeLog
gdb/gdbserver/tdesc.h
gdb/regformats/regdat.sh