From: Jim Blandy <jimb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: Re: RFC: Return piece lists from Dwarf expression evaluation
Date: Tue, 24 Aug 2004 21:35:00 -0000 [thread overview]
Message-ID: <vt2u0usp6cq.fsf@zenia.home> (raw)
In-Reply-To: <vt2acx3v78c.fsf@zenia.home>
Jim Blandy <jimb@redhat.com> writes:
> Jim Blandy <jimb@redhat.com> writes:
> > Here's an implementation of the dwarf2expr interface change I proposed
> > on gdb@ last week.
>
> Here's a revision of that patch that properly handles the 'needs
> frame' case.
>
> 2004-08-09 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.
I've committed this change.
prev parent reply other threads:[~2004-08-24 21:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-10 0:30 Jim Blandy
2004-08-10 6:30 ` Jim Blandy
2004-08-24 21:35 ` Jim Blandy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vt2u0usp6cq.fsf@zenia.home \
--to=jimb@redhat.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox