1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Print gdb commands.

This commit is contained in:
Alain Magloire 2002-10-21 02:55:21 +00:00
parent 1c0d68d350
commit 5fff1d8d25

View file

@ -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()) {