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:
parent
cb0e4c2838
commit
ee03d27d33
18 changed files with 81 additions and 31 deletions
|
@ -27,11 +27,13 @@ public class MIBreakpointEvent extends MIStoppedEvent {
|
|||
MIResultRecord rr;
|
||||
|
||||
public MIBreakpointEvent(MIExecAsyncOutput record) {
|
||||
super(record.getToken());
|
||||
exec = record;
|
||||
parse();
|
||||
}
|
||||
|
||||
public MIBreakpointEvent(MIResultRecord record) {
|
||||
super(record.getToken());
|
||||
rr = record;
|
||||
parse();
|
||||
}
|
||||
|
|
|
@ -12,4 +12,7 @@ package org.eclipse.cdt.debug.mi.core.event;
|
|||
*
|
||||
*/
|
||||
public abstract class MIChangedEvent extends MIEvent {
|
||||
public MIChangedEvent(int id) {
|
||||
super(id);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,8 @@ package org.eclipse.cdt.debug.mi.core.event;
|
|||
*/
|
||||
public class MIDetachedEvent extends MIEvent {
|
||||
|
||||
public MIDetachedEvent() {
|
||||
public MIDetachedEvent(int token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
|
|
|
@ -8,4 +8,14 @@ package org.eclipse.cdt.debug.mi.core.event;
|
|||
/**
|
||||
*/
|
||||
public abstract class MIEvent {
|
||||
|
||||
int token;
|
||||
|
||||
public MIEvent(int token) {
|
||||
this.token = token;
|
||||
}
|
||||
|
||||
public int getToken() {
|
||||
return token;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,12 +26,14 @@ public class MIFunctionFinishedEvent extends MIStoppedEvent {
|
|||
MIExecAsyncOutput exec;
|
||||
MIResultRecord rr;
|
||||
|
||||
public MIFunctionFinishedEvent(MIExecAsyncOutput record) {
|
||||
exec = record;
|
||||
public MIFunctionFinishedEvent(MIExecAsyncOutput async) {
|
||||
super(async.getToken());
|
||||
exec = async;
|
||||
parse();
|
||||
}
|
||||
|
||||
public MIFunctionFinishedEvent(MIResultRecord record) {
|
||||
super(record.getToken());
|
||||
rr = record;
|
||||
parse();
|
||||
}
|
||||
|
|
|
@ -11,4 +11,8 @@ package org.eclipse.cdt.debug.mi.core.event;
|
|||
* Gdb Session terminated.
|
||||
*/
|
||||
public class MIGDBExitEvent extends MIEvent {
|
||||
|
||||
public MIGDBExitEvent(int token) {
|
||||
super(token);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,15 +26,18 @@ public class MIInferiorExitEvent extends MIEvent {
|
|||
MIExecAsyncOutput exec = null;
|
||||
MIResultRecord rr = null;
|
||||
|
||||
public MIInferiorExitEvent() {
|
||||
public MIInferiorExitEvent(int token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public MIInferiorExitEvent(MIExecAsyncOutput record) {
|
||||
exec = record;
|
||||
public MIInferiorExitEvent(MIExecAsyncOutput async) {
|
||||
super(async.getToken());
|
||||
exec = async;
|
||||
parse();
|
||||
}
|
||||
|
||||
public MIInferiorExitEvent(MIResultRecord record) {
|
||||
super(record.getToken());
|
||||
rr = record;
|
||||
parse();
|
||||
}
|
||||
|
|
|
@ -24,12 +24,14 @@ public class MILocationReachedEvent extends MIStoppedEvent {
|
|||
MIExecAsyncOutput exec;
|
||||
MIResultRecord rr;
|
||||
|
||||
public MILocationReachedEvent(MIExecAsyncOutput record) {
|
||||
exec = record;
|
||||
public MILocationReachedEvent(MIExecAsyncOutput async) {
|
||||
super(async.getToken());
|
||||
exec = async;
|
||||
parse();
|
||||
}
|
||||
|
||||
public MILocationReachedEvent(MIResultRecord record) {
|
||||
super(record.getToken());
|
||||
rr = record;
|
||||
parse();
|
||||
}
|
||||
|
|
|
@ -14,7 +14,13 @@ package org.eclipse.cdt.debug.mi.core.event;
|
|||
public class MIMemoryChangedEvent extends MIChangedEvent {
|
||||
|
||||
Long[] addresses;
|
||||
|
||||
public MIMemoryChangedEvent(Long[] addrs) {
|
||||
this(0, addrs);
|
||||
}
|
||||
|
||||
public MIMemoryChangedEvent(int token, Long[] addrs) {
|
||||
super(token);
|
||||
addresses = addrs;
|
||||
}
|
||||
|
||||
|
|
|
@ -13,19 +13,20 @@ package org.eclipse.cdt.debug.mi.core.event;
|
|||
*/
|
||||
public class MIRegisterChangedEvent extends MIChangedEvent {
|
||||
|
||||
String regName;
|
||||
int regno;
|
||||
String regName;
|
||||
int regno;
|
||||
|
||||
public MIRegisterChangedEvent(String name, int no) {
|
||||
regName = name;
|
||||
regno = no;
|
||||
}
|
||||
public MIRegisterChangedEvent(int token, String name, int no) {
|
||||
super(token);
|
||||
regName = name;
|
||||
regno = no;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return regName;
|
||||
}
|
||||
public String getName() {
|
||||
return regName;
|
||||
}
|
||||
|
||||
public int getNumber() {
|
||||
return regno;
|
||||
}
|
||||
public int getNumber() {
|
||||
return regno;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,7 +23,8 @@ public class MIRunningEvent extends MIEvent {
|
|||
|
||||
int type;
|
||||
|
||||
public MIRunningEvent(int t) {
|
||||
public MIRunningEvent(int token, int t) {
|
||||
super(token);
|
||||
type = t;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,12 +27,14 @@ public class MISignalEvent extends MIStoppedEvent {
|
|||
MIExecAsyncOutput exec;
|
||||
MIResultRecord rr;
|
||||
|
||||
public MISignalEvent(MIExecAsyncOutput record) {
|
||||
exec = record;
|
||||
public MISignalEvent(MIExecAsyncOutput async) {
|
||||
super(async.getToken());
|
||||
exec = async;
|
||||
parse();
|
||||
}
|
||||
|
||||
public MISignalEvent(MIResultRecord record) {
|
||||
super(record.getToken());
|
||||
rr = record;
|
||||
parse();
|
||||
}
|
||||
|
|
|
@ -25,12 +25,14 @@ public class MISteppingRangeEvent extends MIStoppedEvent {
|
|||
MIExecAsyncOutput exec;
|
||||
MIResultRecord rr;
|
||||
|
||||
public MISteppingRangeEvent(MIExecAsyncOutput record) {
|
||||
exec = record;
|
||||
public MISteppingRangeEvent(MIExecAsyncOutput async) {
|
||||
super(async.getToken());
|
||||
exec = async;
|
||||
parse();
|
||||
}
|
||||
|
||||
public MISteppingRangeEvent(MIResultRecord record) {
|
||||
super(record.getToken());
|
||||
rr = record;
|
||||
parse();
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ package org.eclipse.cdt.debug.mi.core.event;
|
|||
*/
|
||||
public class MIStoppedEvent extends MIEvent {
|
||||
|
||||
public MIStoppedEvent() {
|
||||
public MIStoppedEvent(int token) {
|
||||
super(token);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,6 +15,11 @@ public class MIThreadExitEvent extends MIEvent {
|
|||
int tid;
|
||||
|
||||
public MIThreadExitEvent(int id) {
|
||||
this(0, id);
|
||||
}
|
||||
|
||||
public MIThreadExitEvent(int token, int id) {
|
||||
super(token);
|
||||
tid = id;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,8 @@ public class MIVarChangedEvent extends MIChangedEvent {
|
|||
String varName;
|
||||
boolean inScope;
|
||||
|
||||
public MIVarChangedEvent(String var, boolean scope) {
|
||||
public MIVarChangedEvent(int token, String var, boolean scope) {
|
||||
super(token);
|
||||
varName = var;
|
||||
inScope = scope;
|
||||
}
|
||||
|
|
|
@ -26,12 +26,14 @@ public class MIWatchpointScopeEvent extends MIStoppedEvent {
|
|||
MIExecAsyncOutput exec;
|
||||
MIResultRecord rr;
|
||||
|
||||
public MIWatchpointScopeEvent(MIExecAsyncOutput record) {
|
||||
exec = record;
|
||||
public MIWatchpointScopeEvent(MIExecAsyncOutput async) {
|
||||
super(async.getToken());
|
||||
exec = async;
|
||||
parse();
|
||||
}
|
||||
|
||||
public MIWatchpointScopeEvent(MIResultRecord record) {
|
||||
super(record.getToken());
|
||||
rr = record;
|
||||
parse();
|
||||
}
|
||||
|
|
|
@ -29,12 +29,14 @@ public class MIWatchpointTriggerEvent extends MIStoppedEvent {
|
|||
MIExecAsyncOutput exec;
|
||||
MIResultRecord rr;
|
||||
|
||||
public MIWatchpointTriggerEvent(MIExecAsyncOutput record) {
|
||||
exec = record;
|
||||
public MIWatchpointTriggerEvent(MIExecAsyncOutput async) {
|
||||
super(async.getToken());
|
||||
exec = async;
|
||||
parse();
|
||||
}
|
||||
|
||||
public MIWatchpointTriggerEvent(MIResultRecord record) {
|
||||
super(record.getToken());
|
||||
rr = record;
|
||||
parse();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue