diff options
author | Tom Tromey <tom@tromey.com> | 2018-07-08 20:31:58 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-22 13:20:07 -0600 |
commit | 3b20124b3d6df31b5bde0f6bcd718cc40de8d49b (patch) | |
tree | 942d3eac4df2276670851139e07976d471696a93 /gdb | |
parent | b0a7723d29ddd39345a4af30c130ebc89c623d21 (diff) | |
download | gdb-3b20124b3d6df31b5bde0f6bcd718cc40de8d49b.zip gdb-3b20124b3d6df31b5bde0f6bcd718cc40de8d49b.tar.gz gdb-3b20124b3d6df31b5bde0f6bcd718cc40de8d49b.tar.bz2 |
Conditionally define xmltarget_${name} variable in regdat.sh
This changes regdat.sh to emit the xmltarget_${name} variable inside
the #ifndef IN_PROCESS_AGENT block. This avoids a -Wunused-variable
warning for some builds. Thanks to Pedro for investigating this one.
gdb/ChangeLog
2018-07-22 Tom Tromey <tom@tromey.com>
* regformats/regdat.sh: Define xmltarget_${name} inside
#ifndef IN_PROCESS_AGENT.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rwxr-xr-x | gdb/regformats/regdat.sh | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 511ac9f..972184d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2018-07-22 Tom Tromey <tom@tromey.com> + * regformats/regdat.sh: Define xmltarget_${name} inside + #ifndef IN_PROCESS_AGENT. + +2018-07-22 Tom Tromey <tom@tromey.com> + * value.c (value_fetch_lazy_bitfield): Remove unused variable. 2018-07-22 Tom Tromey <tom@tromey.com> diff --git a/gdb/regformats/regdat.sh b/gdb/regformats/regdat.sh index 5a8564a..06f1ffc 100755 --- a/gdb/regformats/regdat.sh +++ b/gdb/regformats/regdat.sh @@ -163,6 +163,8 @@ done echo echo "static const char *expedite_regs_${name}[] = { \"`echo ${expedite} | sed 's/,/", "/g'`\", 0 };" + +echo "#ifndef IN_PROCESS_AGENT" if test "${feature}" != x; then echo "static const char *xmltarget_${name} = 0;" elif test "${xmltarget}" = x; then @@ -184,7 +186,6 @@ fi echo cat <<EOF -#ifndef IN_PROCESS_AGENT result->xmltarget = xmltarget_${name}; #endif |