[LLVMbugs] [Bug 13636] New: An executable produced by clang can not be debugged with gdb under Windows

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 18 10:23:39 PDT 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: eran.ifrah at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list