Currently, lldb crashes when adding a stop hook with --shlib because we unconditionally use the target in SymbolContextSpecifier::AddSpecification. Avoid the crash and add a little test.
rdar://68524781
Differential D123746
[lldb] Prevent crash when adding a stop hook with --shlib JDevlieghere on Apr 13 2022, 5:03 PM. Authored by
Details
Currently, lldb crashes when adding a stop hook with --shlib because we unconditionally use the target in SymbolContextSpecifier::AddSpecification. Avoid the crash and add a little test. rdar://68524781
Diff Detail
Event TimelineComment Actions This is fine, though the fact that it crashed when you tried to specify the shared library means we don't have any tests that the shared library gets copied over from the dummy target correctly. Might be nice to extend the test to have a "file not_called_test" and "break set -n main" and "run" to make sure the stop hook doesn't fire. |