summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/breakpoint
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2019-10-04 19:32:57 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2019-10-04 19:32:57 +0000
commit4112b4733502f746b766861853c414af0e01d6f9 (patch)
treef28f290ceef9830b8e82c639255a7b16b3d6ba99 /lldb/packages/Python/lldbsuite/test/python_api/breakpoint
parentf7766b1ed41aa07b6a784d0ebf074c63ada1940d (diff)
downloadbcm5719-llvm-4112b4733502f746b766861853c414af0e01d6f9.tar.gz
bcm5719-llvm-4112b4733502f746b766861853c414af0e01d6f9.zip
[lldb] Fix crash on SBCommandReturnObject & assignment
I was writing an SB API client and it was crashing on: bool DoExecute(SBDebugger dbg, char **command, SBCommandReturnObject &result) { result = subcommand(dbg, "help"); That is because SBCommandReturnObject &result gets initialized inside LLDB by: bool DoExecute(Args &command, CommandReturnObject &result) override { // std::unique_ptr gets initialized here from `&result`!!! SBCommandReturnObject sb_return(&result); DoExecute(...); sb_return.Release(); Differential revision: https://reviews.llvm.org/D67589 llvm-svn: 373775
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/breakpoint')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud