diff options
author | Yao Qi <yao.qi@linaro.org> | 2017-11-24 10:47:27 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2017-11-24 10:47:27 +0000 |
commit | 98ead37e9735438986934f9f1f35f020a093fe07 (patch) | |
tree | ced7a341a4e4be5149213f3c80bc9890fca38518 /gdb/mi | |
parent | 62ad7ce71b243df3e8d7d4f8b8560a7316233a9e (diff) | |
download | gdb-98ead37e9735438986934f9f1f35f020a093fe07.zip gdb-98ead37e9735438986934f9f1f35f020a093fe07.tar.gz gdb-98ead37e9735438986934f9f1f35f020a093fe07.tar.bz2 |
Change value_contents_eq return bool
This patch changes value_contents_eq return type from int to bool.
gdb:
2017-11-24 Yao Qi <yao.qi@linaro.org>
* mi/mi-main.c (register_changed_p): Update.
* value.c (value_contents_bits_eq): Change return type.
(value_contents_eq): Likewise.
* value.h: Update comments.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 6933d172..3261488 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -1012,8 +1012,8 @@ register_changed_p (int regnum, struct regcache *prev_regs, gdb_assert (prev_value != NULL); gdb_assert (this_value != NULL); - auto ret = value_contents_eq (prev_value, 0, this_value, 0, - register_size (gdbarch, regnum)) == 0; + auto ret = !value_contents_eq (prev_value, 0, this_value, 0, + register_size (gdbarch, regnum)); release_value (prev_value); release_value (this_value); |