forked from Imagelibrary/binutils-gdb
Add ability to report when a variable's value is uninitialized,
based on information provided by the compiler. Also add new DWARF OP, DW_OP_GNU_uninit, for this purpose.
This commit is contained in:
@@ -556,6 +556,9 @@ c_value_print (struct value *val, struct ui_file *stream, int format,
|
||||
}
|
||||
}
|
||||
|
||||
if (!value_initialized (val))
|
||||
fprintf_filtered (stream, " [uninitialized] ");
|
||||
|
||||
if (objectprint && (TYPE_CODE (type) == TYPE_CODE_CLASS))
|
||||
{
|
||||
/* Attempt to determine real type of object */
|
||||
|
||||
Reference in New Issue
Block a user