[lldb/Utility] YAML validation should be orthogonal to packet semantics.

It's not up to YAML to validate the semantics of the GDB remote packet
struct. This is especially wrong here as there's nothing that says that
the amount of bytes transmitted  matches the packet payload size.
This commit is contained in:
Jonas Devlieghere 2020-01-03 14:17:25 -08:00
parent 320b43c39f
commit d2b19d455d
1 changed files with 0 additions and 3 deletions

View File

@ -93,9 +93,6 @@ void yaml::MappingTraits<GDBRemotePacket>::mapping(IO &io,
StringRef
yaml::MappingTraits<GDBRemotePacket>::validate(IO &io,
GDBRemotePacket &Packet) {
if (Packet.bytes_transmitted != Packet.packet.data.size())
return "BinaryData size doesn't match bytes transmitted";
return {};
}