diff options
author | Jeffrey Stedfast <jeff@xamarin.com> | 2012-06-14 00:07:39 +0400 |
---|---|---|
committer | Jeffrey Stedfast <jeff@xamarin.com> | 2012-06-14 00:08:47 +0400 |
commit | ffc742c7da027b6b9bcd4d24edeea3ce651d383e (patch) | |
tree | 2b80a33f8da21c72f519c751549413b6e0b0f9fa /main | |
parent | 15e054f3466545f41293cd9fbfe54f0f993b1a8c (diff) |
[Debugger] Fixed breaking in if-statements inside delegates
Fixes bug #5145.
Diffstat (limited to 'main')
-rw-r--r-- | main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerSession.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerSession.cs b/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerSession.cs index 77247674b1..b6deab846a 100644 --- a/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerSession.cs +++ b/main/src/addins/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft/SoftDebuggerSession.cs @@ -1856,6 +1856,11 @@ namespace Mono.Debugging.Soft //Console.WriteLine ("\t\tLocation is closest match. (ILOffset = 0x{0:x5})", location.ILOffset); target_loc = location; } + } else if (target_loc.LineNumber != line) { + // Previous match was a fuzzy match, but now we've found an exact line match + //Console.WriteLine ("\t\tLocation is exact line match. (ILOffset = 0x{0:x5})", location.ILOffset); + target_loc = location; + fuzzy = false; } else if (location.ILOffset < target_loc.ILOffset) { // Line number matches exactly, but has an earlier ILOffset //Console.WriteLine ("\t\tLocation has an earlier ILOffset. (ILOffset = 0x{0:x5})", location.ILOffset); |