Displaying 1 result from an estimated 1 matches for "727d847d".
2017 Aug 03
2
Why LLVM doesn't have debug information of function right parentheses?
Simple Case:
1.int main()
2.{
3. int i = 0;
4. return 0;
5.}
compile command: clang -g a.c
In LLVM IR, we have one attribute named "scopeLine" to indicate the left parentheses. But we don't have one attribute to indicate the right parentheses (line 5 in this example).
So if we use gdb to debug it:
(gdb) b main
Breakpoint 1 at 0x100005c8: file a.c, line 3.
(gdb) r
Breakpoint