Turn value_initialized and set_value_initialized functions into methods

This changes the value_initialized and set_value_initialized functions
to be methods of value.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
Tom Tromey
2023-01-31 12:22:01 -07:00
parent 970441058c
commit 8e5b19ad99
4 changed files with 11 additions and 24 deletions

View File

@@ -554,7 +554,7 @@ c_value_print (struct value *val, struct ui_file *stream,
}
}
if (!value_initialized (val))
if (!val->initialized ())
gdb_printf (stream, " [uninitialized] ");
if (options->objectprint && (type->code () == TYPE_CODE_STRUCT))