-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
When I use the lldb client to connect to the remote gdbserver for debugging, the setting of the exception breakpoint does not take effect #57756
Comments
@llvm/issue-subscribers-lldb |
Can you post the lldb session showing the message? I tried a simple reproducer with the latest lldb (I didn't use
It appears to be trying to set a software break in unmapped memory (as seen in proc//smaps). If I do the same with lldb -> lldb-server it works:
Are you seeing the same warning in your session? |
|
I did some digging into my situation and I think I can explain a bit of what is happening in your log. First thing to know is that setting an exception breakpoint is going to look for symbols including
If we don't know their locations, we won't find any breakpoint locations ( When lldb first connects it will ask gdbserver for locations of libraries:
See how that's an empty response? Well, I connected gdb to gdbserver and saw the following:
Same thing happens, but then there is a fallback:
What file is that? It's lldb doesn't have this fallback which is why lldb -> gdbserver isn't working here. For reasons I don't understand yet, lldb-server does manage to read the library info so lldb -> lldb-server works fine without the need for a fallback.
Next questions:
|
On Linux when I use lldb client to connect to the remote gdbserver. After the break set -E c++ -h true command is run to set an exception breakpoint, a message is displayed indicating that the exception breakpoint is set successfully. However, the program is not stopped at the catch and throw positions.
The text was updated successfully, but these errors were encountered: