From: Alan Hayward Date: Thu, 8 Jun 2017 14:57:12 +0000 (+0100) Subject: Update ff4ca5ac6a2e8 to the correct version. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5369082e7b786dee2c185f768b126a9a18cb2915;p=binutils-gdb.git Update ff4ca5ac6a2e8 to the correct version. gdb/ * mi/mi-main.c (register_changed_p): Use value_contents_eq. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 70736f5cc3e..094a67792d3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-06-08 Alan Hayward + + * mi/mi-main.c (register_changed_p): Use value_contents_eq. + 2017-06-08 Alan Hayward * mi/mi-main.c (register_changed_p): Use cooked_read_value. diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 38d737f49f3..755fbabafb6 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -1125,17 +1125,8 @@ register_changed_p (int regnum, struct regcache *prev_regs, gdb_assert (prev_value != NULL); gdb_assert (this_value != NULL); - if (value_optimized_out (prev_value) != value_optimized_out (this_value) - || value_entirely_available (prev_value) - != value_entirely_available (this_value)) - ret = 1; - if (value_optimized_out (prev_value) - || !value_entirely_available (prev_value)) - ret = 0; - else - ret = memcmp (value_contents_all (prev_value), - value_contents_all (this_value), - register_size (gdbarch, regnum)) != 0; + ret = value_contents_eq (prev_value, 0, this_value, 0, + register_size (gdbarch, regnum)) == 0; release_value (prev_value); release_value (this_value);