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

             Bug #: 13636
           Summary: An executable produced by clang can not be debugged
                    with gdb under Windows
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Created attachment 9071
  --> http://llvm.org/bugs/attachment.cgi?id=9071
main.cpp (hello world...)

Hi,

I have a small "hello world" .cpp file which I compiled into an executable.
When I attempted to debug that executable I got this error from gdb:

C:\src\TestArea\ClangTest\Debug>gdb ClangTest.exe
GNU gdb (GDB) 7.0
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
C:\src\TestArea\ClangTest\Debug/ClangTest.exe...DW_FORM_strp pointing outside
of .debug_str section [in module C:\src\TestArea\ClangTest\Debug/ClangTest.exe]
(gdb) b main
No symbol table is loaded.  Use the "file" command.

My source is compiled like this:
--- 
clang++  -c  main.cpp -g -O0 -Wall  -o ./Debug/main.o 
clang++ -o ./Debug/ClangTest ./Debug/main.o
---

Attached is main.cpp

My spec:
Windows 7, 64 bit
Self compiled clang from latest trunk using MinGW/GCC4.6.1 (TDM-GCC)

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