http://llvm.org/bugs/show_bug.cgi?id=14571

             Bug #: 14571
           Summary: Invalid source file name in debug info for precompiled
                    file.
           Product: clang
           Version: 3.1
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Consider the example (test.c):
#include <stdio.h>
int main (void)
{
    printf("Hello, world\n");
    return 0;
}

If we call clang with the precompiled file then the corresponding file for the
function main() is 'test.i'. Which is not quite correct since test.i starts
with directive "# 1 'test.c'".


$ clang -g -E -o test.i test.c
$ clang -g test.i -o test.exe
$ gdb test.exe

(gdb) info func main
All functions matching regular expression "main":

File test.i:                     <--  test.i instead of test.c
int main(void);
(gdb) 


Is it an intended behavior? Or will it be fixed?


Thanks,
Olga Chupina
---
Software Engineer
Intel Compiler Team
Intel Corp.

-- 
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

Reply via email to