diff --git a/CHANGELOG.md b/CHANGELOG.md index b151c3d1..b055d4aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +# 0.6.1 + +- ignore unknown vFile:open flags + # 0.6.0 After over a half-year of development, `gdbstub` 0.6 has finally been released! diff --git a/src/protocol/commands/_vFile_open.rs b/src/protocol/commands/_vFile_open.rs index 290772db..60bdf12c 100644 --- a/src/protocol/commands/_vFile_open.rs +++ b/src/protocol/commands/_vFile_open.rs @@ -20,8 +20,8 @@ impl<'a> ParseCommand<'a> for vFileOpen<'a> { [b':', body @ ..] => { let mut body = body.splitn_mut_no_panic(3, |b| *b == b','); let filename = decode_hex_buf(body.next()?).ok()?; - let flags = HostIoOpenFlags::from_bits(decode_hex(body.next()?).ok()?)?; - let mode = HostIoOpenMode::from_bits(decode_hex(body.next()?).ok()?)?; + let flags = HostIoOpenFlags::from_bits_truncate(decode_hex(body.next()?).ok()?); + let mode = HostIoOpenMode::from_bits_truncate(decode_hex(body.next()?).ok()?); Some(vFileOpen { filename, flags, mode }) }, _ => None,