Skip to content

Commit 8966b2c

Browse files
committed
Add comment about having a frame in the StoppedExecutionContext
1 parent 06817bb commit 8966b2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Core/Statusline.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ void Statusline::Redraw(std::optional<ExecutionContextRef> exe_ctx_ref) {
137137
llvm::Expected<StoppedExecutionContext> stopped_exe_ctx =
138138
GetStoppedExecutionContext(&m_exe_ctx_ref);
139139
if (stopped_exe_ctx) {
140+
// The StoppedExecutionContext only ensures that we hold the run lock.
141+
// The process could be in an exited or unloaded state and have no frame.
140142
if (auto frame_sp = stopped_exe_ctx->GetFrameSP())
141143
sym_ctx = frame_sp->GetSymbolContext(eSymbolContextEverything);
142144
} else {

0 commit comments

Comments
 (0)