You've already forked linux-packaging-mono
68 lines
997 B
C#
68 lines
997 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Mono.Cecil.Cil;
|
|
using Mono.Cecil.Metadata;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
|
|
namespace Mono.Debugger.Soft
|
|
{
|
|
/*
|
|
* This is similar to the Instruction class in Cecil, we can't use that
|
|
* as its constructor is internal.
|
|
*/
|
|
public class ILInstruction
|
|
{
|
|
int offset;
|
|
OpCode opcode;
|
|
object operand;
|
|
ILInstruction prev, next;
|
|
|
|
internal ILInstruction (int offset, OpCode opcode, object operand) {
|
|
this.offset = offset;
|
|
this.opcode = opcode;
|
|
this.operand = operand;
|
|
}
|
|
|
|
public int Offset {
|
|
get {
|
|
return offset;
|
|
}
|
|
}
|
|
|
|
public OpCode OpCode {
|
|
get {
|
|
return opcode;
|
|
}
|
|
}
|
|
|
|
public Object Operand {
|
|
get {
|
|
return operand;
|
|
}
|
|
set {
|
|
operand = value;
|
|
}
|
|
}
|
|
|
|
public ILInstruction Next {
|
|
get {
|
|
return next;
|
|
}
|
|
set {
|
|
next = value;
|
|
}
|
|
}
|
|
|
|
public ILInstruction Previous {
|
|
get {
|
|
return prev;
|
|
}
|
|
set {
|
|
prev = value;
|
|
}
|
|
}
|
|
}
|
|
}
|