This is the mail archive of the gdb@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: watchpoint and function epilogue


[Accidentally dropped CC]

On 11/21/05, Christophe LYON <christophe.lyon@st.com> wrote:
> Jim Blandy wrote:
> > On 11/18/05, Christophe LYON <christophe.lyon@st.com> wrote:
> >
> >>So what is your advice in order to deal with this situation? I guess
> >>that if the compiler is modified not to generate the instruction that
> >>restores the CFA_offset, it will work again. Is there any other possibility?
> >
> >
> > You could emit a location list that says that 'b' is optimized out
> > starting at L3.  I'm not sure how GDB would react to that, but it
> > would certainly be GDB's problem if it didn't behave correctly.
> >
>
> Thanks,
>
> I am not sure I can easily do that.
>
> No other target has the same kind of issue?

Actually, lots of targets have this issue. That test in the test suite
often has failures related to the compiler not quite accurately
describing when the variable is deallocated.

Another possibility would be to locate 'b' and all your other local
variables in a made-up internal lexical block which ends at L2.


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