This is the mail archive of the gdb-patches@sourceware.org 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: [RFC] better dwarf checking for values on the stack


> Yeah, if we wanted to catch more cases of what's on the stack than
> what's currently there does, then we need to appropriately handle the
> math. ?I explicitly left that for another day.
>
> dwarf2expr.c:
>
> ? ? ?/* Assume the value is not in stack memory.
> ? ? ? ? Code that knows otherwise sets this to 1.
> ? ? ? ? Some arithmetic on stack addresses can probably be assumed to
> still
> ? ? ? ? be a stack address, but we skip this complication for now.
> ? ? ? ? This is just an optimization, so it's always ok to punt
> ? ? ? ? and leave this as 0. ?*/
> ? ? ?int in_stack_memory = 0;
>
> Sound ok?

Sure.

-cary


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