Commit d6f351b6 authored by Alexander Drozdov's avatar Alexander Drozdov
Browse files

BareMetal: Fix broken remote setup

After 62c6a074

object creates on stack and destroys on expression end. So, remote
setup does not work. Simple create it on heap. It will be cleaned up
when RunControl object destroys.

Change-Id: I7565d22e27e158d57a4764111befe74892b64356
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <>
Reviewed-by: default avatarhjk <>
parent 16063554
......@@ -135,9 +135,8 @@ RunControl *BareMetalRunControlFactory::create(
sp.remoteSetupNeeded = true;
DebuggerRunControl *runControl = createDebuggerRunControl(sp, rc, errorMessage, mode);
if (runControl && sp.remoteSetupNeeded) {
(void) BareMetalDebugSupport(runControl);
if (runControl && sp.remoteSetupNeeded)
new BareMetalDebugSupport(runControl);
return runControl;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment