diff options
author | Yao Qi <yao.qi@linaro.org> | 2017-06-29 12:41:50 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2017-06-29 12:41:50 +0100 |
commit | adc764e7d217d3e56af988ce20cedc98d8c4cc73 (patch) | |
tree | 365d062bb76d9eb07ca1c8a557459dcfd514873f /gdb/regformats | |
parent | ec1acaba1381d0196c45965a7db9942b67fbd88d (diff) | |
download | gdb-adc764e7d217d3e56af988ce20cedc98d8c4cc73.zip gdb-adc764e7d217d3e56af988ce20cedc98d8c4cc73.tar.gz gdb-adc764e7d217d3e56af988ce20cedc98d8c4cc73.tar.bz2 |
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".
Diffstat (limited to 'gdb/regformats')
-rwxr-xr-x | gdb/regformats/regdat.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/regformats/regdat.sh b/gdb/regformats/regdat.sh index 4c73352..651f703 100755 --- a/gdb/regformats/regdat.sh +++ b/gdb/regformats/regdat.sh @@ -179,8 +179,11 @@ init_registers_${name} (void) result->reg_defs = regs_${name}; result->num_registers = sizeof (regs_${name}) / sizeof (regs_${name}[0]); + +#ifndef IN_PROCESS_AGENT result->expedite_regs = expedite_regs_${name}; result->xmltarget = xmltarget_${name}; +#endif init_target_desc (result); |