1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

super needs token as argument.

This commit is contained in:
Alain Magloire 2002-10-26 20:27:28 +00:00
parent cb0e4c2838
commit ee03d27d33
18 changed files with 81 additions and 31 deletions

View file

@ -27,11 +27,13 @@ public class MIBreakpointEvent extends MIStoppedEvent {
MIResultRecord rr; MIResultRecord rr;
public MIBreakpointEvent(MIExecAsyncOutput record) { public MIBreakpointEvent(MIExecAsyncOutput record) {
super(record.getToken());
exec = record; exec = record;
parse(); parse();
} }
public MIBreakpointEvent(MIResultRecord record) { public MIBreakpointEvent(MIResultRecord record) {
super(record.getToken());
rr = record; rr = record;
parse(); parse();
} }

View file

@ -12,4 +12,7 @@ package org.eclipse.cdt.debug.mi.core.event;
* *
*/ */
public abstract class MIChangedEvent extends MIEvent { public abstract class MIChangedEvent extends MIEvent {
public MIChangedEvent(int id) {
super(id);
}
} }

View file

@ -13,7 +13,8 @@ package org.eclipse.cdt.debug.mi.core.event;
*/ */
public class MIDetachedEvent extends MIEvent { public class MIDetachedEvent extends MIEvent {
public MIDetachedEvent() { public MIDetachedEvent(int token) {
super(token);
} }
public String toString() { public String toString() {

View file

@ -8,4 +8,14 @@ package org.eclipse.cdt.debug.mi.core.event;
/** /**
*/ */
public abstract class MIEvent { public abstract class MIEvent {
int token;
public MIEvent(int token) {
this.token = token;
}
public int getToken() {
return token;
}
} }

View file

@ -26,12 +26,14 @@ public class MIFunctionFinishedEvent extends MIStoppedEvent {
MIExecAsyncOutput exec; MIExecAsyncOutput exec;
MIResultRecord rr; MIResultRecord rr;
public MIFunctionFinishedEvent(MIExecAsyncOutput record) { public MIFunctionFinishedEvent(MIExecAsyncOutput async) {
exec = record; super(async.getToken());
exec = async;
parse(); parse();
} }
public MIFunctionFinishedEvent(MIResultRecord record) { public MIFunctionFinishedEvent(MIResultRecord record) {
super(record.getToken());
rr = record; rr = record;
parse(); parse();
} }

View file

@ -11,4 +11,8 @@ package org.eclipse.cdt.debug.mi.core.event;
* Gdb Session terminated. * Gdb Session terminated.
*/ */
public class MIGDBExitEvent extends MIEvent { public class MIGDBExitEvent extends MIEvent {
public MIGDBExitEvent(int token) {
super(token);
}
} }

View file

@ -26,15 +26,18 @@ public class MIInferiorExitEvent extends MIEvent {
MIExecAsyncOutput exec = null; MIExecAsyncOutput exec = null;
MIResultRecord rr = null; MIResultRecord rr = null;
public MIInferiorExitEvent() { public MIInferiorExitEvent(int token) {
super(token);
} }
public MIInferiorExitEvent(MIExecAsyncOutput record) { public MIInferiorExitEvent(MIExecAsyncOutput async) {
exec = record; super(async.getToken());
exec = async;
parse(); parse();
} }
public MIInferiorExitEvent(MIResultRecord record) { public MIInferiorExitEvent(MIResultRecord record) {
super(record.getToken());
rr = record; rr = record;
parse(); parse();
} }

View file

@ -24,12 +24,14 @@ public class MILocationReachedEvent extends MIStoppedEvent {
MIExecAsyncOutput exec; MIExecAsyncOutput exec;
MIResultRecord rr; MIResultRecord rr;
public MILocationReachedEvent(MIExecAsyncOutput record) { public MILocationReachedEvent(MIExecAsyncOutput async) {
exec = record; super(async.getToken());
exec = async;
parse(); parse();
} }
public MILocationReachedEvent(MIResultRecord record) { public MILocationReachedEvent(MIResultRecord record) {
super(record.getToken());
rr = record; rr = record;
parse(); parse();
} }

View file

@ -14,7 +14,13 @@ package org.eclipse.cdt.debug.mi.core.event;
public class MIMemoryChangedEvent extends MIChangedEvent { public class MIMemoryChangedEvent extends MIChangedEvent {
Long[] addresses; Long[] addresses;
public MIMemoryChangedEvent(Long[] addrs) { public MIMemoryChangedEvent(Long[] addrs) {
this(0, addrs);
}
public MIMemoryChangedEvent(int token, Long[] addrs) {
super(token);
addresses = addrs; addresses = addrs;
} }

View file

@ -16,7 +16,8 @@ public class MIRegisterChangedEvent extends MIChangedEvent {
String regName; String regName;
int regno; int regno;
public MIRegisterChangedEvent(String name, int no) { public MIRegisterChangedEvent(int token, String name, int no) {
super(token);
regName = name; regName = name;
regno = no; regno = no;
} }

View file

@ -23,7 +23,8 @@ public class MIRunningEvent extends MIEvent {
int type; int type;
public MIRunningEvent(int t) { public MIRunningEvent(int token, int t) {
super(token);
type = t; type = t;
} }

View file

@ -27,12 +27,14 @@ public class MISignalEvent extends MIStoppedEvent {
MIExecAsyncOutput exec; MIExecAsyncOutput exec;
MIResultRecord rr; MIResultRecord rr;
public MISignalEvent(MIExecAsyncOutput record) { public MISignalEvent(MIExecAsyncOutput async) {
exec = record; super(async.getToken());
exec = async;
parse(); parse();
} }
public MISignalEvent(MIResultRecord record) { public MISignalEvent(MIResultRecord record) {
super(record.getToken());
rr = record; rr = record;
parse(); parse();
} }

View file

@ -25,12 +25,14 @@ public class MISteppingRangeEvent extends MIStoppedEvent {
MIExecAsyncOutput exec; MIExecAsyncOutput exec;
MIResultRecord rr; MIResultRecord rr;
public MISteppingRangeEvent(MIExecAsyncOutput record) { public MISteppingRangeEvent(MIExecAsyncOutput async) {
exec = record; super(async.getToken());
exec = async;
parse(); parse();
} }
public MISteppingRangeEvent(MIResultRecord record) { public MISteppingRangeEvent(MIResultRecord record) {
super(record.getToken());
rr = record; rr = record;
parse(); parse();
} }

View file

@ -13,6 +13,7 @@ package org.eclipse.cdt.debug.mi.core.event;
*/ */
public class MIStoppedEvent extends MIEvent { public class MIStoppedEvent extends MIEvent {
public MIStoppedEvent() { public MIStoppedEvent(int token) {
super(token);
} }
} }

View file

@ -15,6 +15,11 @@ public class MIThreadExitEvent extends MIEvent {
int tid; int tid;
public MIThreadExitEvent(int id) { public MIThreadExitEvent(int id) {
this(0, id);
}
public MIThreadExitEvent(int token, int id) {
super(token);
tid = id; tid = id;
} }

View file

@ -16,7 +16,8 @@ public class MIVarChangedEvent extends MIChangedEvent {
String varName; String varName;
boolean inScope; boolean inScope;
public MIVarChangedEvent(String var, boolean scope) { public MIVarChangedEvent(int token, String var, boolean scope) {
super(token);
varName = var; varName = var;
inScope = scope; inScope = scope;
} }

View file

@ -26,12 +26,14 @@ public class MIWatchpointScopeEvent extends MIStoppedEvent {
MIExecAsyncOutput exec; MIExecAsyncOutput exec;
MIResultRecord rr; MIResultRecord rr;
public MIWatchpointScopeEvent(MIExecAsyncOutput record) { public MIWatchpointScopeEvent(MIExecAsyncOutput async) {
exec = record; super(async.getToken());
exec = async;
parse(); parse();
} }
public MIWatchpointScopeEvent(MIResultRecord record) { public MIWatchpointScopeEvent(MIResultRecord record) {
super(record.getToken());
rr = record; rr = record;
parse(); parse();
} }

View file

@ -29,12 +29,14 @@ public class MIWatchpointTriggerEvent extends MIStoppedEvent {
MIExecAsyncOutput exec; MIExecAsyncOutput exec;
MIResultRecord rr; MIResultRecord rr;
public MIWatchpointTriggerEvent(MIExecAsyncOutput record) { public MIWatchpointTriggerEvent(MIExecAsyncOutput async) {
exec = record; super(async.getToken());
exec = async;
parse(); parse();
} }
public MIWatchpointTriggerEvent(MIResultRecord record) { public MIWatchpointTriggerEvent(MIResultRecord record) {
super(record.getToken());
rr = record; rr = record;
parse(); parse();
} }