[llvm-bugs] [Bug 33664] New: comments in assembly files confuse line numbers in debugging with lldb
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jun 30 11:05:15 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33664
Bug ID: 33664
Summary: comments in assembly files confuse line numbers in
debugging with lldb
Product: new-bugs
Version: 4.0
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: mike.benfield at gmail.com
CC: llvm-bugs at lists.llvm.org
I don't know whether this is a problem with lldb or with the debugging
information clang produces. In the following example, I try to set a breakpoint
at line 11 but lldb points to line 16.
$ cat trash.s
.intel_syntax noprefix
.text
.global _main
_main:
# text
# text
# text
# text
# text
mov rbx, 20
# text
# text
# text
# text
# text
mov rax, 5
ret
$ clang -c -g trash.s
$ clang trash.o
$ lldb a.out
(lldb) target create "a.out"
Current executable set to 'a.out' (x86_64).
(lldb) breakpoint set -f trash.s -l 11
Breakpoint 1: where = a.out`main, address = 0x0000000100000fa9
(lldb) run
Process 24212 launched:
'/Users/mike/Dropbox/Repositories/assembly_experiments/isort/a.out' (x86_64)
Process 24212 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
frame #0: 0x0000000100000fa9 a.out`main at trash.s:16
13 # text
14 # text
15 # text
-> 16 # text
17 mov rax, 5
18 ret
--
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/20170630/392e4dbe/attachment.html>
More information about the llvm-bugs
mailing list