gdb
authorTom Tromey <tromey@redhat.com>
Fri, 21 May 2010 21:01:46 +0000 (21:01 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 21 May 2010 21:01:46 +0000 (21:01 +0000)
commitcb82636715e384dc5e75f3c1a4fd436626ba8dcd
treee75f984689d6689f268f025f198b5cc1817780ff
parent74de6778b16fe5429d512d7250747f4d9e1ed374
gdb
* dwarf2loc.c (read_pieced_value): Exit loop when result is full.
<DWARF_VALUE_OPTIMIZED_OUT>: New case.
* dwarf2expr.h (enum dwarf_value_location)
<DWARF_VALUE_OPTIMIZED_OUT>: New constant.
* dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
(add_piece): Handle empty piece.
(execute_stack_op) <DW_OP_piece>: 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/ChangeLog
gdb/dwarf2expr.c
gdb/dwarf2expr.h
gdb/dwarf2loc.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/pieces.S
gdb/testsuite/gdb.dwarf2/pieces.c
gdb/testsuite/gdb.dwarf2/pieces.exp