From 5fff1d8d2509f0c750294b86b359d5b51788079a Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Mon, 21 Oct 2002 02:55:21 +0000 Subject: [PATCH] Print gdb commands. --- .../src/org/eclipse/cdt/debug/mi/core/MISession.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MISession.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MISession.java index e2f2f3366c6..63ac1d1d105 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MISession.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MISession.java @@ -74,7 +74,9 @@ public class MISession extends Observable { long cmdTimeout; MIInferior inferior; - + + int cmdCount = 1; + /** * Create the gdb session. * @@ -232,10 +234,10 @@ public class MISession extends Observable { /** * Sends a command to gdb, and wait(timeout) for a response. */ - static int number = 1; public synchronized void postCommand(Command cmd, long timeout) throws MIException { -//MIPlugin.getDefault().debugLog(number++ + " " + cmd.toString()); + // TRACING: print the command; + MIPlugin.getDefault().debugLog(cmdCount++ + " " + cmd.toString()); // Test if we are in a sane state. if (!txThread.isAlive() || !rxThread.isAlive()) {