We shouldn't save g_dummy_target_sp. Other code will simply call Destroy() on it.
authorFilipe Cabecinhas <me@filcab.net>
Thu, 17 May 2012 15:48:02 +0000 (15:48 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Thu, 17 May 2012 15:48:02 +0000 (15:48 +0000)
commitb018345ddcdc74779d0d9efb7b59d5762422f87d
tree253fa0c1c0e4f8ef2a0a734067f30cca71387e48
parent26ad6a4f600b4644088d79e8dab1d0d88eca10e8
We shouldn't save g_dummy_target_sp. Other code will simply call Destroy() on it.

TestBackticksWithoutATarget.BackticksWithNoTargetTestCase was calling
GetDummyTarget() when executing for x86_64. When performing session
tearDown, it would get destroyed (and everything would be invalid (arch,
etc).

Then the test would run for i386. The dummy target wasn't being
reinitialized and was invalid. lldb complained that 'current process state
is unsuitable for expression parsing'.

llvm-svn: 156994
lldb/source/Host/common/Host.cpp