Fix assert in recordGdbTranslation
commit95c5f6d4099bf6068065d9b21cd356353a8c7eaa
authorEdwin Smith <smith@fb.com>
Wed, 29 Nov 2017 19:12:36 +0000 (29 11:12 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 29 Nov 2017 19:17:43 +0000 (29 11:17 -0800)
treeb4d994888eb175460fbd96c7ed7be236fb1dead2
parent49a60a7ab2f11d16b6d2575c2357dbef72f3ebc8
Fix assert in recordGdbTranslation

Summary:
assert(contains(start) && contains(end)) incorrectly fails when
end is exactly at the end of the code block, since end is exclusive.
Add a new contains(start,end) predicate with the correct logic.

Reviewed By: markw65

Differential Revision: D6427789

fbshipit-source-id: c3e6235db1b660c86ef7189d51a48452b8373b50
hphp/runtime/vm/jit/tc-record.cpp
hphp/util/data-block.h
hphp/util/test/data-block.cpp [new file with mode: 0644]