aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2017-06-29 12:41:50 +0100
committerYao Qi <yao.qi@linaro.org>2017-06-29 12:41:50 +0100
commitadc764e7d217d3e56af988ce20cedc98d8c4cc73 (patch)
tree365d062bb76d9eb07ca1c8a557459dcfd514873f /gdb/gdbserver
parentec1acaba1381d0196c45965a7db9942b67fbd88d (diff)
downloadgdb-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/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog6
-rw-r--r--gdb/gdbserver/tdesc.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 63b54f6..4ae5b33 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
* Makefile.in (IPA_OBJS): Sort and format one item per line.
diff --git a/gdb/gdbserver/tdesc.h b/gdb/gdbserver/tdesc.h
index ada879d..0341278 100644
--- a/gdb/gdbserver/tdesc.h
+++ b/gdb/gdbserver/tdesc.h
@@ -36,6 +36,7 @@ struct target_desc
/* The register cache size, in bytes. */
int registers_size;
+#ifndef IN_PROCESS_AGENT
/* An array of register names. These are the "expedite" registers:
registers whose values are sent along with stop replies. */
const char **expedite_regs;
@@ -45,6 +46,7 @@ struct target_desc
verbatim XML code (prefixed with a '@') or else the name of the
actual XML file to be used in place of "target.xml". */
const char *xmltarget;
+#endif
};
/* Copy target description SRC to DEST. */