HomePhabricator

[lldb-vscode] Fix dangling pointer in request_evaluate.

Description

[lldb-vscode] Fix dangling pointer in request_evaluate.

SBError::GetCString() returns a pointer to a string owned by the SBError
object. The code here was calling GetCString on a temporary and using
the returned pointer after the temporary was destroyed.

Differential Revision: https://reviews.llvm.org/D59400

Details

Committed
jgorbeMar 14 2019, 6:46 PM
Differential Revision
D59400: [lldb-vscode] Fix dangling pointer in request_evaluate.
Branches
Unknown
Tags
Unknown