aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2018-02-01 15:09:44 +0000
committerYao Qi <yao.qi@linaro.org>2018-02-01 15:09:44 +0000
commitdf95a9cf09867c237ddf9b4eb65a990e86de1e17 (patch)
treedd49f8a11100640643067b40c7c9fcb8f7896e58 /gdb
parentFix gdb.base/attach.exp fails when gdb is configured --with-sysroot=/ (diff)
downloadbinutils-gdb-df95a9cf09867c237ddf9b4eb65a990e86de1e17.tar.gz
binutils-gdb-df95a9cf09867c237ddf9b4eb65a990e86de1e17.tar.bz2
binutils-gdb-df95a9cf09867c237ddf9b4eb65a990e86de1e17.zip
set ret signed in arm_record_extension_space
Variable 'ret' should be int rather than unsigned, as it can be -1. gdb: 2018-02-01 Yao Qi <yao.qi@linaro.org> * arm-tdep.c (arm_record_extension_space): Change ret to signed.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/arm-tdep.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 90986ef3e81..5c3338fe5ad 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2018-02-01 Yao Qi <yao.qi@linaro.org>
+
+ * arm-tdep.c (arm_record_extension_space): Change ret to signed.
+
2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
* rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 2e434898c58..d991e7ea4ff 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -9964,7 +9964,7 @@ arm_record_strx (insn_decode_record *arm_insn_r, uint32_t *record_buf,
static int
arm_record_extension_space (insn_decode_record *arm_insn_r)
{
- uint32_t ret = 0; /* Return value: -1:record failure ; 0:success */
+ int ret = 0; /* Return value: -1:record failure ; 0:success */
uint32_t opcode1 = 0, opcode2 = 0, insn_op1 = 0;
uint32_t record_buf[8], record_buf_mem[8];
uint32_t reg_src1 = 0;