This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Let dwarf2 CFI's execute_stack_op be used outside of CFI
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Daniel Berlin <dan at dberlin dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 26 Mar 2002 12:25:40 -0500
- Subject: Re: [PATCH] Let dwarf2 CFI's execute_stack_op be used outside of CFI
- References: <Pine.LNX.4.44.0203251851190.6911-100000@dberlin.org>
> On Mon, 25 Mar 2002, Andrew Cagney wrote:
>
>
>> > This patch simply adds an external entry point (dwarf2_execute_stack_op),
>> > that doesn't require the CFA context. It also adds code so that when the
>> > context passed to execute_stack_op is NULL, we use read_register_gen to
>> > get registers.
>
>>
>> Hmm, where are you going here?
>
>
> Um, rather than have multiple dwarf2 stack op executors, have one.
> In order to do this, it needs to not require CFA context to be able to
> read registers.
Shouldn't the dwarf2 location expression evaluator be separated out
(dwarf2loc?) and be parameterized with both the frame it is to operate
within and the expression it is to evaluate. If the expression
evaluator needs the value of a register from the frame it just calls
whatever the frame-get-reg-value(frame) function is.
Andrew