diff options
author | John Dallaway | 2018-09-27 11:28:14 +0000 |
---|---|---|
committer | John Dallaway | 2018-09-27 11:33:07 +0000 |
commit | 87cd426861eac3a38a1d79f575d6002dd63e8f5f (patch) | |
tree | de3129c08493aa80fe77ce44110053f101b1e7b6 /dsf-gdb | |
parent | 70a03a862e263385e253d11699859d1c5dab7895 (diff) | |
download | org.eclipse.cdt-87cd426861eac3a38a1d79f575d6002dd63e8f5f.tar.gz org.eclipse.cdt-87cd426861eac3a38a1d79f575d6002dd63e8f5f.tar.xz org.eclipse.cdt-87cd426861eac3a38a1d79f575d6002dd63e8f5f.zip |
Bug 539455: Report debug command errors via status handler
Change-Id: I4c3abbb660e426580ce8f836e6e19a897fbaeefe
Signed-off-by: John Dallaway <john@dallaway.org.uk>
Diffstat (limited to 'dsf-gdb')
-rw-r--r-- | dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/AbstractMIControl.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/AbstractMIControl.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/AbstractMIControl.java index f1c34df49e4..1e0bb62484a 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/AbstractMIControl.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/AbstractMIControl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2015 Wind River Systems and others. + * Copyright (c) 2006, 2018 Wind River Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -13,6 +13,7 @@ * Marc Khouzam (Ericsson) - New method to properly created ErrorThread (Bug 350837) * Jason Litton (Sage Electronic Engineering, LLC) - Use Dynamic Tracing option (Bug 379169) * Jonah Graham (Kichwa Coders) - Bug 317173 - cleanup warnings + * John Dallaway - Decode line breaks in status message (Bug 539455) *******************************************************************************/ package org.eclipse.cdt.dsf.mi.service.command; @@ -833,6 +834,7 @@ public abstract class AbstractMIControl extends AbstractDsfService clientMsg.append("Failed to execute MI command:\n"); //$NON-NLS-1$ clientMsg.append(origCommand.toString()); if (message != null) { + message = message.replaceAll("\\\\n", "\n"); //$NON-NLS-1$ //$NON-NLS-2$ clientMsg.append("Error message from debugger back end:\n"); //$NON-NLS-1$ if (parameters != null) { try { |