Refactor out the comparison of the location/value in a DebugLocEntry