Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJb Evain <jbevain@gmail.com>2017-11-16 22:25:24 +0300
committerGitHub <noreply@github.com>2017-11-16 22:25:24 +0300
commitb4f4571a7f45df013c32f3ccd3939b8852819b04 (patch)
tree3e241b5624e113581437753d88201b99d37da55a /symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs
parent14e6162ae535afacb69eb6df399bbc46779a4587 (diff)
Fix reading mdb scope end (#466)
* Fix reading mdb scope end
Diffstat (limited to 'symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs')
-rw-r--r--symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs b/symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs
index 66a7225..59e933a 100644
--- a/symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs
+++ b/symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs
@@ -78,6 +78,7 @@ namespace Mono.Cecil.Mdb {
return null;
var info = new MethodDebugInformation (method);
+ info.code_size = ReadCodeSize (method);
var scopes = ReadScopes (entry, info);
ReadLineNumbers (entry, info);
@@ -86,6 +87,11 @@ namespace Mono.Cecil.Mdb {
return info;
}
+ static int ReadCodeSize (MethodDefinition method)
+ {
+ return method.Module.Read (method, (m, reader) => reader.ReadCodeSize (m));
+ }
+
static void ReadLocalVariables (MethodEntry entry, ScopeDebugInformation [] scopes)
{
var locals = entry.GetLocals ();