From e1e9d9e792ffbdf3539545ebffc2e4cf08cbe837 Mon Sep 17 00:00:00 2001 From: John Dallaway Date: Tue, 25 Jan 2022 19:36:18 +0000 Subject: [PATCH] Bug 578323: Initialize memory data before remote connection We must ensure that memory data is initialized before the restoration of persisted memory monitors is triggered. Change-Id: I1fc2af877d27f331fbc4c516c05fb871dad410c4 Signed-off-by: John Dallaway --- .../cdt/dsf/gdb/service/DebugNewProcessSequence.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/DebugNewProcessSequence.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/DebugNewProcessSequence.java index ee3ab793db5..3c7b4a73c38 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/DebugNewProcessSequence.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/DebugNewProcessSequence.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2015 Ericsson and others. + * Copyright (c) 2011, 2022 Ericsson and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -13,6 +13,7 @@ * Marc Khouzam (Ericsson) - Support setting the path in which the core file * dialog should start (Bug 362039) * Sergey Prigogin (Google) - Bug 381804 + * John Dallaway - Initialize memory data before remote connection (Bug 578323) *******************************************************************************/ package org.eclipse.cdt.dsf.gdb.service; @@ -103,12 +104,14 @@ public class DebugNewProcessSequence extends ReflectionSequence { "stepSetExecutable", //$NON-NLS-1$ "stepSetArguments", //$NON-NLS-1$ - // For remote non-attach only - "stepRemoteConnection", //$NON-NLS-1$ // For post-mortem launch only "stepSpecifyCoreFile", //$NON-NLS-1$ "stepInitializeMemory", //$NON-NLS-1$ + + // For remote non-attach only + "stepRemoteConnection", //$NON-NLS-1$ + "stepStartTrackingBreakpoints", //$NON-NLS-1$ "stepStartExecution", //$NON-NLS-1$ "stepCleanupBaseSequence", //$NON-NLS-1$