Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (21 sloc) 0.596 kB
using System;
using Mono.Debugger;
using Mono.Debugger.Backend;
using Mono.Cecil;
using Mono.Cecil.Metadata;
using C = Mono.CompilerServices.SymbolWriter;
namespace Mono.Debugger.Languages.Mono
internal static class MonoDebuggerSupport
public static int GetMethodToken (Cecil.MethodDefinition method)
return method.MetadataToken.ToInt32 ();
public static Cecil.MethodDefinition GetMethod (Cecil.ModuleDefinition module, int token)
return (Cecil.MethodDefinition) module.LookupToken (
new Cecil.MetadataToken (Cecil.TokenType.Method, token & 0xffffff));
Jump to Line
Something went wrong with that request. Please try again.