diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 13:25:17 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | 317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced (patch) | |
tree | 20bca3a06c842e4eed5101debd1f672539e87714 /gdb/cp-valprint.c | |
parent | cbe793af8831a7244de326d6b07c60c197f096a2 (diff) | |
download | binutils-317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced.zip binutils-317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced.tar.gz binutils-317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced.tar.bz2 |
Turn allocate_value into a static "constructor"
This changes allocate_value to be a static "constructor" of value.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r-- | gdb/cp-valprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index ebed52c..268a414 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -761,7 +761,7 @@ test_print_fields (gdbarch *arch) FIELD_BITSIZE (*f) = 1; } - value *val = allocate_value (the_struct); + value *val = value::allocate (the_struct); gdb_byte *contents = value_contents_writeable (val).data (); store_unsigned_integer (contents, val->enclosing_type ()->length (), gdbarch_byte_order (arch), 0xe9); |