OSDN Git Service

* dwarf2expr.h (struct dwarf_expr_context): New members
authorjimb <jimb>
Tue, 24 Aug 2004 21:01:47 +0000 (21:01 +0000)
committerjimb <jimb>
Tue, 24 Aug 2004 21:01:47 +0000 (21:01 +0000)
commit6cfe69c94be56b5b31225f300c2dadfa172f4e14
tree9a845046e345ac21c809358360da801b73ea52d8
parent1a74a7607ea3efe15ed6bf111962f36164d106e6
* dwarf2expr.h (struct dwarf_expr_context): New members
'num_pieces' and 'pieces', for returning the result of an
expression that uses DW_OP_piece.
(struct dwarf_expr_piece): New struct type.
* dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
pieces.
(free_dwarf_expr_context): Free pieces, if any.
(add_piece): New function.
(execute_stack_op): Implement DW_OP_piece.
* dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
expression is a list of pieces, print an error message.
(dwarf2_loc_desc_needs_frame): If the expression yields
pieces, and any piece is in a register, then we need a frame.
gdb/ChangeLog
gdb/dwarf2expr.c
gdb/dwarf2expr.h
gdb/dwarf2loc.c