diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 13:41:35 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:08 -0700 |
commit | ee7bb2944b75ce482dbf3bdb2d396efc98f1cf89 (patch) | |
tree | d5ffc773a34b580cd981ce5c529f8232c4e5a355 /gdb/frame-unwind.c | |
parent | b27556e3c10e197cc31021649a6113bb305b970e (diff) | |
download | binutils-ee7bb2944b75ce482dbf3bdb2d396efc98f1cf89.zip binutils-ee7bb2944b75ce482dbf3bdb2d396efc98f1cf89.tar.gz binutils-ee7bb2944b75ce482dbf3bdb2d396efc98f1cf89.tar.bz2 |
Turn value_zero into static "constructor"
This turns value_zero into a static "constructor" of value.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/frame-unwind.c')
-rw-r--r-- | gdb/frame-unwind.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/frame-unwind.c b/gdb/frame-unwind.c index ab6c33f..c884cdd 100644 --- a/gdb/frame-unwind.c +++ b/gdb/frame-unwind.c @@ -304,7 +304,7 @@ frame_unwind_got_constant (frame_info_ptr frame, int regnum, enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); struct value *reg_val; - reg_val = value_zero (register_type (gdbarch, regnum), not_lval); + reg_val = value::zero (register_type (gdbarch, regnum), not_lval); store_unsigned_integer (value_contents_writeable (reg_val).data (), register_size (gdbarch, regnum), byte_order, val); return reg_val; @@ -316,7 +316,7 @@ frame_unwind_got_bytes (frame_info_ptr frame, int regnum, const gdb_byte *buf) struct gdbarch *gdbarch = frame_unwind_arch (frame); struct value *reg_val; - reg_val = value_zero (register_type (gdbarch, regnum), not_lval); + reg_val = value::zero (register_type (gdbarch, regnum), not_lval); memcpy (value_contents_raw (reg_val).data (), buf, register_size (gdbarch, regnum)); return reg_val; @@ -333,7 +333,7 @@ frame_unwind_got_address (frame_info_ptr frame, int regnum, struct gdbarch *gdbarch = frame_unwind_arch (frame); struct value *reg_val; - reg_val = value_zero (register_type (gdbarch, regnum), not_lval); + reg_val = value::zero (register_type (gdbarch, regnum), not_lval); pack_long (value_contents_writeable (reg_val).data (), register_type (gdbarch, regnum), addr); return reg_val; |