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/value.c | |
parent | b27556e3c10e197cc31021649a6113bb305b970e (diff) | |
download | gdb-ee7bb2944b75ce482dbf3bdb2d396efc98f1cf89.zip gdb-ee7bb2944b75ce482dbf3bdb2d396efc98f1cf89.tar.gz gdb-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/value.c')
-rw-r--r-- | gdb/value.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/value.c b/gdb/value.c index a957372..4dfd8fe 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -3418,11 +3418,10 @@ pack_unsigned_long (gdb_byte *buf, struct type *type, ULONGEST num) } } - -/* Create a value of type TYPE that is zero, and return it. */ +/* See value.h. */ struct value * -value_zero (struct type *type, enum lval_type lv) +value::zero (struct type *type, enum lval_type lv) { struct value *val = value::allocate_lazy (type); |