This is the mail archive of the
gdb-cvs@sources.redhat.com
mailing list for the GDB project.
src/gdb ChangeLog dwarf2expr.c dwarf2expr.h dw ...
- From: jimb at sourceware dot org
- To: gdb-cvs at sources dot redhat dot com
- Date: 7 Sep 2004 16:00:27 -0000
- Subject: src/gdb ChangeLog dwarf2expr.c dwarf2expr.h dw ...
CVSROOT: /cvs/src
Module name: src
Branch: gdb_6_2-e500-branch
Changes by: jimb@sourceware.org 2004-09-07 16:00:27
Modified files:
gdb : ChangeLog dwarf2expr.c dwarf2expr.h dwarf2loc.c
Log message:
Merge changes from trunk:
2004-08-24 Jim Blandy <jimb@redhat.com>
* 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.
* dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
the stack until we've decided what sort of result the evaluation
has produced. Use separate variables, with more specific names.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_6_2-e500-branch&r1=1.6083.2.21.2.3&r2=1.6083.2.21.2.4
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/dwarf2expr.c.diff?cvsroot=src&only_with_tag=gdb_6_2-e500-branch&r1=1.12&r2=1.12.4.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/dwarf2expr.h.diff?cvsroot=src&only_with_tag=gdb_6_2-e500-branch&r1=1.5&r2=1.5.28.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/dwarf2loc.c.diff?cvsroot=src&only_with_tag=gdb_6_2-e500-branch&r1=1.15&r2=1.15.4.1