http://llvm.org/bugs/show_bug.cgi?id=4526
Summary: clang: should support macro definitions when -g3 is used
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
#define X(a) (a+1)
int main()
{
return X(1);
}
Compiled with gcc -g3 I am able to evaluate the X() macro in gdb:
$ gcc -g3 x.c
$ gdb ./a.out
...
(gdb) b main
(gdb) r
(gdb) p X(1)
$1 = 2
(gdb)
Compiled with clang -g3, it behaves the same as -g: I don't get macro
information:
$ clang -g3 x.c
$ gdb ./a.out
...
(gdb) b main
(gdb) r
(gdb) p X(1)
No symbol "X" in current context.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs