Re: [RFC/RFA?] Should break FILE:LINENO skip prologue?

Mark Kettenis
2008-01-11T11:28:11Z

> Date: Thu, 10 Jan 2008 21:35:47 -0800
> From: Joel Brobecker <brobecker@adacore.com>
>
> The situation becomes trickier at -O1 and beyond, because parts of
> the prologue may be delayed later inside the function body. But in
> that case, the compiler will still emit a specific line for the
> instruction block that does the assignment. So the actual linetable
> will look like this:
>
> Line 3: prologue
> Line 4. assign j
> Lin3 3. prologue
> Line 5. call sin, assign f
> ...
>
> In that case, the skipping will only skip the first part of the
> prologue, and you can still break on any assignment if you'd like.
> My patches do not affect that situation either.
>
> > If we can somehow ascertain ourselves that indeed we can still put a
> > breakpoint on the second assignment and have it break before entering
> > sin(), I think Joels origional diff is actually acceptable.
>
> Hopefully the explaination above convinces you that this is the case?

Thanks Joel, yes, after this explanation, I withdraw my objections.
It's now clear that changing things the way you propose will not
restrict me in any way.

Mark