Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac attach hang #12

Open
inevity opened this issue Oct 23, 2020 · 0 comments
Open

mac attach hang #12

inevity opened this issue Oct 23, 2020 · 0 comments

Comments

@inevity
Copy link

inevity commented Oct 23, 2020

Use example code,
exec rust-lldb -p 43329 -o 'expression looping = 0' -o finish
......
(lldb) type category enable Rust
(lldb) process attach --pid 43329
Process 43329 stopped

  • thread Don't require import of debug_here to use the macro #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00000001040105fd testdebughere`debug_here::internal::debug_here_unixy_impl::hf6d1cf537d18380d(debugger=Option<&str> @ 0x00007ffeebbfca40) at internal.rs:111:5
    108
    109 // Now we enter an infinite loop and wait for the debugger to come to
    110 // our rescue
    -> 111 while looping {}
    112 }
    113
    114 /// Pop open a debugger on windows.
    Target 0: (testdebughere) stopped.

Executable module set to "/Users/xxxx/Downloads/testdebughere/target/debug/testdebughere".
Architecture set to: x86_64h-apple-macosx-.
(lldb) expression looping = 0
(bool) $0 = false
(lldb) finish
here hung!

Need two ctl +C,and only breaking at the 111 line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant