forked from OSchip/llvm-project
[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:
parent
320b43c39f
commit
d2b19d455d
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue