aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-regs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui/tui-regs.c')
-rw-r--r--gdb/tui/tui-regs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 7f64a2b..975173a 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -732,6 +732,13 @@ tui_get_register (struct frame_info *frame,
struct gdbarch *gdbarch = get_frame_arch (frame);
int size = register_size (gdbarch, regnum);
+ /* We only know whether a value chunk is available if we've
+ tried to read it. */
+ if (value_lazy (data->value))
+ value_fetch_lazy (data->value);
+ if (value_lazy (old_val))
+ value_fetch_lazy (old_val);
+
if (value_optimized_out (data->value) != value_optimized_out (old_val)
|| !value_available_contents_eq (data->value, 0,
old_val, 0, size))