From 467eeb06a445b5d3891fe71995d471ccd7c4b38e Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Sat, 24 Jul 2021 18:03:17 -0400 Subject: [PATCH] Fix trace of command line array In the DSF tests the command line is output, but it is an array so needed an Arrays.toString Change-Id: I8b7dc33073dc3a34ffe7eea0343e415041335c7d --- .../org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java index 3c14f0050cf..936c39ad473 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java @@ -683,7 +683,8 @@ public class BaseTestCase { String[] commandLine = { server, ":" + port, program }; try { if (GdbDebugOptions.DEBUG) - GdbDebugOptions.trace("Starting gdbserver with command: " + commandLine + "\n"); + GdbDebugOptions + .trace("Starting gdbserver with command: " + Arrays.toString(commandLine) + "\n"); gdbserverProc = ProcessFactory.getFactory().exec(commandLine); Reader r = new InputStreamReader(gdbserverProc.getErrorStream());