diff options
author | Caroline Tice <cmtice@google.com> | 2007-05-18 19:42:42 +0000 |
---|---|---|
committer | Caroline Tice <cmtice@google.com> | 2007-05-18 19:42:42 +0000 |
commit | 42be36b328ae784ae6981da7c7cab95b67ed7737 (patch) | |
tree | 5b0a0ffb49db6fe2d5c149e62e5d84f2c9de39b7 /gdb/dwarf2read.c | |
parent | a7c569c8f08b3485034e771a5e49cce0e23ca2b2 (diff) | |
download | gdb-42be36b328ae784ae6981da7c7cab95b67ed7737.zip gdb-42be36b328ae784ae6981da7c7cab95b67ed7737.tar.gz gdb-42be36b328ae784ae6981da7c7cab95b67ed7737.tar.bz2 |
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.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 3b3f263..2cb455e 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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)); |