Mono.Debugger.Thread.DisassembleInstruction C# (CSharp) Method

DisassembleInstruction() public method

public DisassembleInstruction ( Method method, TargetAddress address ) : AssemblerLine
method Method
address TargetAddress
return AssemblerLine
        public AssemblerLine DisassembleInstruction(Method method, TargetAddress address)
        {
            check_alive ();
            return servant.DisassembleInstruction (method, address);
        }

Usage Example

Ejemplo n.º 1
0
        public override AssemblyLine[] GetLines(long startAddr, long endAddr)
        {
            List <AssemblyLine> lines = new List <AssemblyLine> ();

            MD.TargetAddress addr = baseAddr + (startAddr - baseAddr.Address);
            while (addr.Address <= endAddr)
            {
                try {
                    MD.AssemblerLine line = thread.DisassembleInstruction(null, addr);
                    lines.Add(new AssemblyLine(addr.Address, line.Text));
                    addr += line.InstructionSize;
                } catch {
                    Console.WriteLine("failed " + addr.Address);
                    lines.Add(new AssemblyLine(addr.Address, "??"));
                    addr++;
                }
            }
            return(lines.ToArray());
        }
All Usage Examples Of Mono.Debugger.Thread::DisassembleInstruction