2009-11-02 Zoltan Varga <vargaz@gmail.com>
[mcs.git] / class / Mono.Debugger.Soft / Mono.Debugger / ILInstruction.cs
blob6efbfe6a5709bc97a8a26240fa5390e65ec0ea54
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using Mono.Cecil.Cil;
5 using Mono.Cecil.Metadata;
6 using System.IO;
7 using System.Reflection;
9 namespace Mono.Debugger
12 * This is similar to the Instruction class in Cecil, we can't use that
13 * as its constructor is internal.
15 public class ILInstruction
17 int offset;
18 OpCode opcode;
19 object operand;
20 ILInstruction prev, next;
22 internal ILInstruction (int offset, OpCode opcode, object operand) {
23 this.offset = offset;
24 this.opcode = opcode;
25 this.operand = operand;
28 public int Offset {
29 get {
30 return offset;
34 public OpCode OpCode {
35 get {
36 return opcode;
40 public Object Operand {
41 get {
42 return operand;
44 set {
45 operand = value;
49 public ILInstruction Next {
50 get {
51 return next;
53 set {
54 next = value;
58 public ILInstruction Previous {
59 get {
60 return prev;
62 set {
63 prev = value;