From cb82636715e384dc5e75f3c1a4fd436626ba8dcd Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 21 May 2010 21:01:46 +0000 Subject: gdb * dwarf2loc.c (read_pieced_value): Exit loop when result is full. : New case. * dwarf2expr.h (enum dwarf_value_location) : New constant. * dwarf2expr.c (dwarf_expr_stack_empty_p): New function. (add_piece): Handle empty piece. (execute_stack_op) : Handle DWARF_VALUE_OPTIMIZED_OUT. gdb/testsuite * gdb.dwarf2/pieces.exp (pieces_test_f6): New proc. Call it. * gdb.dwarf2/pieces.c (struct C): New. (f6): New function. * gdb.dwarf2/pieces.S: Replace. --- gdb/dwarf2expr.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gdb/dwarf2expr.h') diff --git a/gdb/dwarf2expr.h b/gdb/dwarf2expr.h index 437ca39..f24f193 100644 --- a/gdb/dwarf2expr.h +++ b/gdb/dwarf2expr.h @@ -38,7 +38,10 @@ enum dwarf_value_location DWARF_VALUE_STACK, /* The piece is a literal. */ - DWARF_VALUE_LITERAL + DWARF_VALUE_LITERAL, + + /* The piece was optimized out. */ + DWARF_VALUE_OPTIMIZED_OUT }; /* The dwarf expression stack. */ -- cgit v1.1