[LLVMbugs] [Bug 12922] New: no debugging symbols found in gdb when assembly file is compiled to form the executable with -g option.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 23 08:33:19 PDT 2012


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

             Bug #: 12922
           Summary: no debugging symbols found in gdb when assembly file
                    is compiled to form the executable with -g option.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: mayurthebond at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


I have an assembly file containing thumb2-it(thumb2 IF THEN) instructions which
i need to check for single step in gdb. The problem being faced is that when i
am compiling this assembly .S file using clang with -g option and running the
generated executable on gdb, It says no debugging symbols found.

When I compiled the same assembly file using gcc(using the -g compile option),
the executable created contained the debug information. 

When I looked into the the executables generated using the readelf -a command,
I found that the .debug_* info is absent from the clang compiled executable.

Attached the assembly file which is being used.

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