You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is, run the executable in the background, sleep 1 second (until threads have been spawned and are blocked in sleep), and then attach to it in batch mode, set a breakpoint with commands, and continue.
godlygeek
changed the title
lldb leaves inferior stopped at breakpoint even after detaching
lldb on Linux leaves inferior stopped at breakpoint even after detaching
Jan 31, 2023
Given this C++11 program in a file called
test.cpp
:Compiled with
g++ -std=c++11 test.cpp -lpthread -o test
This
lldb
command line consistently results in the inferior process remaining in a stopped state even afterlldb
has detached and exited:That is, run the executable in the background, sleep 1 second (until threads have been spawned and are blocked in
sleep
), and then attach to it in batch mode, set a breakpoint with commands, and continue.The full output is:
After which, listing the jobs in my
zsh
shell shows:until I foreground it or prod it with a SIGCONT.
This reproduces on Linux in lldb 10.0.0, lldb 15.0.4, and in a debug build of
main
.The text was updated successfully, but these errors were encountered: