diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2008-04-09 00:09:57 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2008-04-09 00:09:57 +0400 |
commit | 51218af46b408bae73581f9de365bce17d903a1f (patch) | |
tree | f08386e459d4ba1a84d4afda6045b863a8be8bd0 /mcs/class/Mono.Cecil.Mdb | |
parent | c562ca1b3f9210906c8ef2a3100e60015cc8a90a (diff) |
2008-04-08 Sebastien Pouliot <sebastien@ximian.com>
* Mono.Cecil.Mdb/MdbReader.cs:
Make sure we set variables names even if the scope
information is missing.
svn path=/trunk/mcs/; revision=100137
Diffstat (limited to 'mcs/class/Mono.Cecil.Mdb')
-rw-r--r-- | mcs/class/Mono.Cecil.Mdb/ChangeLog | 6 | ||||
-rw-r--r-- | mcs/class/Mono.Cecil.Mdb/Mono.Cecil.Mdb/MdbReader.cs | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/mcs/class/Mono.Cecil.Mdb/ChangeLog b/mcs/class/Mono.Cecil.Mdb/ChangeLog index c38c1db1abb..56b35d91eac 100644 --- a/mcs/class/Mono.Cecil.Mdb/ChangeLog +++ b/mcs/class/Mono.Cecil.Mdb/ChangeLog @@ -1,3 +1,9 @@ +2008-04-08 Sebastien Pouliot <sebastien@ximian.com> + + * Mono.Cecil.Mdb/MdbReader.cs: + Make sure we set variables names even if the scope + information is missing. + 2007-08-28 Jb Evain <jbevain@novell.com> * Mono.Cecil.Mdb/MdbWriter.cs: diff --git a/mcs/class/Mono.Cecil.Mdb/Mono.Cecil.Mdb/MdbReader.cs b/mcs/class/Mono.Cecil.Mdb/Mono.Cecil.Mdb/MdbReader.cs index a40d44e973a..d2716ced93a 100644 --- a/mcs/class/Mono.Cecil.Mdb/Mono.Cecil.Mdb/MdbReader.cs +++ b/mcs/class/Mono.Cecil.Mdb/Mono.Cecil.Mdb/MdbReader.cs @@ -80,12 +80,12 @@ namespace Mono.Cecil.Mdb { void ReadLocalVariables (MethodEntry entry, MethodBody body) { foreach (LocalVariableEntry loc in entry.Locals) { + VariableDefinition var = body.Variables [loc.Index]; + var.Name = loc.Name; + Scope scope = m_scopes [loc.BlockIndex] as Scope; if (scope == null) continue; - - VariableDefinition var = body.Variables [loc.Index]; - var.Name = loc.Name; scope.Variables.Add (var); } } |