[LLVMbugs] [Bug 14498] New: debug info line table for functions starts at the first statement rather than the opening brace
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Dec 3 13:51:23 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14498
Bug #: 14498
Summary: debug info line table for functions starts at the
first statement rather than the opening brace
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: googler
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dblaikie at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Blocks: 14330
Classification: Unclassified
For:
1 void
2 func
3 (
4 )
5 {
6 return;
7 }
With frame pointers enabled (gcc default, clang -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer)
GCC produces this line table:
address line
0 5
4 6
5 7
7 7
Clang produces this line table:
0 5
4 6
6 6
While the trailing line might be debatable, it might be helpful to have Clang
break in at the same initial location ("{"). This would help pass several GDB
7.5 tests (sevenal in gdb.cp/namespace.exp, one in gdb.python/python.exp)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list