[llvm-bugs] [Bug 44146] New: Incorrect step-over behavior falling through functions
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Nov 25 15:20:08 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=44146
Bug ID: 44146
Summary: Incorrect step-over behavior falling through functions
Product: lldb
Version: 9.0
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: wirelyre at gmail.com
CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org
$ cat fallthrough.s
.globl main, _main
main:
_main:
push %rbp
main2:
call subroutine
pop %rbp
ret
subroutine:
xor %eax, %eax
ret
$ cc fallthrough.s -o fallthrough
$ lldb ./fallthrough -o 'breakpoint set -n main' -o 'process launch'
On macOS, "next / next" stops at fallthrough`subroutine instead of correctly
stepping over the call.
On Linux, "next" finishes the process instead of stepping one instruction.
--
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/20191125/f7323fca/attachment-0001.html>
More information about the llvm-bugs
mailing list