This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PR gdb/856
On Mon, Sep 29, 2008 at 10:17:50AM -0700, Joel Brobecker wrote:
> > Daniel's answer is here, but I never got back to it:
> > http://sourceware.org/ml/gdb-patches/2008-06/msg00036.html
>
> PC and block: I don't see why passing the block would be required
> for inlining support - as I understand it, we can always compute
> the actual block from the PC. No?
No. There can be more than one block at the PC.
Normally this isn't a big deal. Anything from blocks further out is
visible further in. There are two exceptions. One of them is already
a problem and GDB does not support it helpfully: shadowed variables.
{
int x;
{
int x;
...
}
}
The other is more noticeable; inlining. When you say "up" you move to
the call site. And the call site might be in a different file, and
have different macros defined.
--
Daniel Jacobowitz
CodeSourcery