diff options
author | Vy Nguyen <oontvoo@users.noreply.github.com> | 2024-06-07 11:27:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-07 11:27:52 -0400 |
commit | 35fa2ded2ac52151be22c206fc92b983d1fd8e30 (patch) | |
tree | 4b441c7607923e1d8e4be7877452ce698eaaa3dc /lldb/source/API/SBDebugger.cpp | |
parent | e9adcc488f96a9f2b8c4344f5e3c7ca6639b9562 (diff) | |
download | llvm-35fa2ded2ac52151be22c206fc92b983d1fd8e30.zip llvm-35fa2ded2ac52151be22c206fc92b983d1fd8e30.tar.gz llvm-35fa2ded2ac52151be22c206fc92b983d1fd8e30.tar.bz2 |
Reapply PR/87550 (#94625)
Re-apply https://github.com/llvm/llvm-project/pull/87550 with fixes.
Details:
Some tests in fuchsia failed because of the newly added assertion.
This was because `GetExceptionBreakpoint()` could be called before
`g_dap.debugger` was initted.
The fix here is to just lazily populate the list in
GetExceptionBreakpoint() rather than assuming it's already been initted.
(There is some nuisance here because we can't simply just populate it in
DAP::DAP(), which is a global ctor and is called before
`SBDebugger::Initialize()` is called. )
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r-- | lldb/source/API/SBDebugger.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index 7ef0d6e..29da7d3 100644 --- a/lldb/source/API/SBDebugger.cpp +++ b/lldb/source/API/SBDebugger.cpp @@ -1742,3 +1742,7 @@ bool SBDebugger::InterruptRequested() { return m_opaque_sp->InterruptRequested(); return false; } + +bool SBDebugger::SupportsLanguage(lldb::LanguageType language) { + return TypeSystem::SupportsLanguageStatic(language); +} |