This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Let dwarf2 CFI's execute_stack_op be used outside of CFI


> 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]