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:
parent
1c0d68d350
commit
5fff1d8d25
1 changed files with 5 additions and 3 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue