[LLVMbugs] [Bug 4526] New: clang: should support macro definitions when -g3 is used
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Jul 9 23:58:19 PDT 2009
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: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
#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.
More information about the llvm-bugs
mailing list