aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-main.c
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2017-06-08 15:57:12 +0100
committerAlan Hayward <alan.hayward@arm.com>2017-06-08 16:00:23 +0100
commit5369082e7b786dee2c185f768b126a9a18cb2915 (patch)
tree7f91e72b9a839a9adb993fcdf83b14173398d001 /gdb/mi/mi-main.c
parent4ec192e6abe86319b9e9af6f2ae4cf0614b1e2b3 (diff)
downloadgdb-5369082e7b786dee2c185f768b126a9a18cb2915.zip
gdb-5369082e7b786dee2c185f768b126a9a18cb2915.tar.gz
gdb-5369082e7b786dee2c185f768b126a9a18cb2915.tar.bz2
Update ff4ca5ac6a2e8 to the correct version.
gdb/ * mi/mi-main.c (register_changed_p): Use value_contents_eq.
Diffstat (limited to 'gdb/mi/mi-main.c')
-rw-r--r--gdb/mi/mi-main.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 38d737f..755fbab 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);