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

Create events

This commit is contained in:
Alain Magloire 2003-01-09 19:12:51 +00:00
parent 7e44d59f2e
commit c893038fcc
4 changed files with 135 additions and 0 deletions

View file

@ -0,0 +1,37 @@
/*
* (c) Copyright QNX Software Systems Ltd. 2002.
* All Rights Reserved.
*
*/
package org.eclipse.cdt.debug.mi.core.event;
/**
* This can not be detected yet by gdb/mi.
*
*/
public class MIMemoryCreatedEvent extends MICreatedEvent {
long address;
long totalBytes;
public MIMemoryCreatedEvent(long addr, long total) {
this(0, addr, total);
}
public MIMemoryCreatedEvent(int token, long addr, long total) {
super(token);
address = addr;
totalBytes = total;
}
public long getAddress() {
return address;
}
public long getLength() {
return totalBytes;
}
}

View file

@ -0,0 +1,37 @@
/*
* (c) Copyright QNX Software Systems Ltd. 2002.
* All Rights Reserved.
*
*/
package org.eclipse.cdt.debug.mi.core.event;
/**
* This can not be detected yet by gdb/mi.
*
*/
public class MIRegisterCreatedEvent extends MICreatedEvent {
String regName;
int regno;
public MIRegisterCreatedEvent(String name, int number) {
this(0, name, number);
}
public MIRegisterCreatedEvent(int token, String name, int number) {
super(token);
regName = name;
regno = number;
}
public String getName() {
return regName;
}
public int getNumber() {
return regno;
}
}

View file

@ -0,0 +1,29 @@
/*
* (c) Copyright QNX Software Systems Ltd. 2002.
* All Rights Reserved.
*
*/
package org.eclipse.cdt.debug.mi.core.event;
/**
* This can not be detected yet by gdb/mi.
*
*/
public class MIThreadCreatedEvent extends MICreatedEvent {
int tid;
public MIThreadCreatedEvent(int id) {
this(0, id);
}
public MIThreadCreatedEvent(int token, int id) {
super(token);
tid = id;
}
public int getId() {
return tid;
}
}

View file

@ -0,0 +1,32 @@
/*
* (c) Copyright QNX Software Systems Ltd. 2002.
* All Rights Reserved.
*
*/
package org.eclipse.cdt.debug.mi.core.event;
/**
* This can not be detected yet by gdb/mi.
*
*/
public class MIVarCreatedEvent extends MICreatedEvent {
String varName;
public MIVarCreatedEvent(String var) {
super(0);
varName = var;
}
public MIVarCreatedEvent(int token, String var) {
super(token);
varName = var;
}
public String getVarName() {
return varName;
}
}