Discussion:
[Open64-devel] Keep the end SPOS of a function on the kid n-3 of the FUNC_ENTRY
Jian-Xin Lai
2012-12-25 04:00:20 UTC
Permalink
Hi,

For a case:
1 int foo()
2 {
3 int i=9;
4
5 if (i < 10)
6 return 1;
7 else
8 return 0;
9
10 }
11

If we debug this case with GCC, the debugger will stop at line 5 and 10.
But open64 only stops at line 5. So far the end SPOS (line 13) of the
function is missing from the IR because there isn't any statement on line
13. Is it OK to keep the end SPOS on the kid n-3 of the FUNC_ENTRY? Or is
there any other suggestions? Thank you very much.
--
Regards,
Lai Jian-Xin
Loading...