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

Eli Zaretskii
2008-01-11T21:07:36Z

> Date: Fri, 11 Jan 2008 10:21:36 -0800
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb-patches@sourceware.org
>
> Andreas, Eli, have your concerns been answered too? Just to recap,
> the proposal is the following. Considering the following code:
>
> 1. int
> 2. my_procedure (...)
> 3. {
> 4. int local1 = ...;
> 5. int local2 = ...;
> 6. ...
>
> The idea is that inserting a breakpoint on line 2 or 3 would be
> equivalent to breaking on "my_procedure", which means that the
> actual location will be line 4 (before the locals assignment
> take place).

Actually, I didn't have concern regarding your original patch, but now
that Mark raised the issue, I'm not sure what about his concerns.
Suppose I do want to step through the function prolog -- how would I
accomplish that after your changes?