set ret signed in arm_record_extension_space
authorYao Qi <yao.qi@linaro.org>
Thu, 1 Feb 2018 15:09:44 +0000 (15:09 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 1 Feb 2018 15:09:44 +0000 (15:09 +0000)
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.

gdb/ChangeLog
gdb/arm-tdep.c

index 90986ef3e81fffaded637452624d8261dfd2a339..5c3338fe5ad00ead0a6606c50d8682385bb57b3e 100644 (file)
@@ -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
index 2e434898c589adf2240a2de67812e9da53994916..d991e7ea4ff91ce906b2e4e9f6057eb3ef90e567 100644 (file)
@@ -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;