diff options
Diffstat (limited to 'gdb/frame-unwind.c')
-rw-r--r-- | gdb/frame-unwind.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gdb/frame-unwind.c b/gdb/frame-unwind.c index 064f6eb..32124c5 100644 --- a/gdb/frame-unwind.c +++ b/gdb/frame-unwind.c @@ -251,18 +251,8 @@ frame_unwind_got_optimized (struct frame_info *frame, int regnum) { struct gdbarch *gdbarch = frame_unwind_arch (frame); struct type *type = register_type (gdbarch, regnum); - struct value *val; - - /* Return an lval_register value, so that we print it as - "<not saved>". */ - val = allocate_value_lazy (type); - set_value_lazy (val, 0); - mark_value_bytes_optimized_out (val, 0, TYPE_LENGTH (type)); - VALUE_LVAL (val) = lval_register; - VALUE_REGNUM (val) = regnum; - VALUE_NEXT_FRAME_ID (val) - = get_frame_id (get_next_frame_sentinel_okay (frame)); - return val; + + return allocate_optimized_out_value (type); } /* Return a value which indicates that FRAME copied REGNUM into |