llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.64k stars 11.37k forks source link

no debugging symbols found in gdb when assembly file is compiled to form the executable with -g option. #13294

Open llvmbot opened 12 years ago

llvmbot commented 12 years ago
Bugzilla Link 12922
Version unspecified
OS Linux
Attachments The assembly file used for generating the executable
Reporter LLVM Bugzilla Contributor
CC @asl

Extended Description

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.

llvmbot commented 12 years ago

Obviously you think/knows its not a Windows specific , but the fact remains: its un-usable under Windows ;)

asl commented 12 years ago

The bug

This bug actually makes clang unusable under Windows, is there a chance it will addressed? The bug is not connected with windows at all.

llvmbot commented 12 years ago

This bug actually makes clang unusable under Windows, is there a chance it will addressed?