[llvm-bugs] [Bug 38695] New: .file directive suppresses debuginfo
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Aug 24 16:01:27 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38695
Bug ID: 38695
Summary: .file directive suppresses debuginfo
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: MC
Assignee: unassignedbugs at nondot.org
Reporter: brian.cain at gmail.com
CC: llvm-bugs at lists.llvm.org
The presence of ".file" mutes debug info generated by the assembler as of
r328208 – logic in AsmParser::enabledGenDwarfForAssembly().
~~~~~~~~~
$ cat file_.S
//.file 1 "file.S"
.file "file_other.S"
.text
f1:
nop
.size f1, .-f1
$ /local/mnt/workspace/install/gcc-8.1/bin/gcc-8.1 -g -o out.o -c file_.S ;
objdump -t out.o
out.o: file format elf64-x86-64
SYMBOL TABLE:
0000000000000000 l df *ABS* 0000000000000000 file_other.S
0000000000000000 l d .text 0000000000000000 .text
0000000000000000 l d .data 0000000000000000 .data
0000000000000000 l d .bss 0000000000000000 .bss
0000000000000000 l .text 0000000000000001 f1
0000000000000000 l d .debug_info 0000000000000000 .debug_info
0000000000000000 l d .debug_abbrev 0000000000000000
.debug_abbrev
0000000000000000 l d .debug_line 0000000000000000 .debug_line
0000000000000000 l d .debug_aranges 0000000000000000
.debug_aranges
$ /local/mnt/workspace/install/clang_nightly_2018_Jul27/bin/clang -g -o out.o
-c file_.S ; objdump -t out.o
out.o: file format elf64-x86-64
SYMBOL TABLE:
0000000000000000 l df *ABS* 0000000000000000 file_other.S
0000000000000000 l .text 0000000000000001 f1
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180824/e9f2b7e6/attachment.html>
More information about the llvm-bugs
mailing list