This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: More than one stabn for the same PC
- To: law at cygnus dot com
- Subject: Re: More than one stabn for the same PC
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Mon, 29 Nov 1999 22:37:17 -0800
- Cc: gdb at sourceware dot cygnus dot com, gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <19991129165903H.mitchell@codesourcery.com><27496.943925188@upchuck>
>>>>> "Jeffrey" == Jeffrey A Law <law@cygnus.com> writes:
Jeffrey> Though I am curious, how does this happen?
We tend to do this with inlining. (We're doing it more with
inlining-on-trees, but we used to do it anyhow.) Consider:
int i;
inline int f () {
i = 3;
}
void g() {
f();
}
In `g' we first emit a line note for the line with the curly brace for
`g', then emit a line note for the line with `i = 3' in it. I think
that's roughly the right thing, but the debugger gets confused.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com