Fix memcheck range intersect check.
Merge pull request #2652 from unknownbrackets/debugger

Fix memcheck range intersect check