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:
@@ -8656,6 +8656,8 @@ dwarf_stack_op_name (unsigned op)
|
||||
return "DW_OP_bit_piece";
|
||||
case DW_OP_GNU_push_tls_address:
|
||||
return "DW_OP_GNU_push_tls_address";
|
||||
case DW_OP_GNU_uninit:
|
||||
return "DW_OP_GNU_uninit";
|
||||
/* HP extensions. */
|
||||
case DW_OP_HP_is_value:
|
||||
return "DW_OP_HP_is_value";
|
||||
@@ -9231,6 +9233,9 @@ decode_locdesc (struct dwarf_block *blk, struct dwarf2_cu *cu)
|
||||
dwarf2_complex_location_expr_complaint ();
|
||||
break;
|
||||
|
||||
case DW_OP_GNU_uninit:
|
||||
break;
|
||||
|
||||
default:
|
||||
complaint (&symfile_complaints, _("unsupported stack op: '%s'"),
|
||||
dwarf_stack_op_name (op));
|
||||
|
||||
Reference in New Issue
Block a user