-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do not fail on unknown HostIoOpenFlags #98
Conversation
While this PR does solve your immediate issue, it is not a proper solution to the problem. I'll try to find some time soon to think of the best way to work around this issue, but unfortunately, I cannot merge this PR in its current state. Note that as it stands, |
That said, I sincerely appreciate the PR, and for bringing this issue to my attention. |
np, so I'll stay with my fork |
I did a bit more digging and found this: Look like LLDB's flags are a strict superset of GDB flags, which means it should be possible to support these additional flags without breaking existing GDB implementation / requiring any breaking API changes. If you'd like to send a PR that adds these additional variants, I'd be happy to merge that one. |
oh, wait, maybe not actually... looks like this was only a recent change, and older versions of lldb will use different enum values: llvm/llvm-project@8bbef4f I suspect we'd want to support older clients as well, which means this continues to be a tricky problem to solve nicely... |
Currently |
Yeah, you know what - fair enough! We can punt the hard problem of supporting older LLDB clients down the line, and get you unblocked for now in a non-breaking way. So sure, feel free to send a PR my way with these new variants :) |
FYI, I've opened a tracking issue for the broader LLDB compatibility story over at #99 |
Description
gdbstub fails when unknown file open flags are passed with:
This bug appeared with lldb sending
platform put-file
command, appending followingFile:open
arguments:612e6f7574,40000601,000001ed
The simple solution is to use
from_bits_truncate
to ignore unknown flags.API Stability
Checklist
Implementation
cargo build
compiles withouterrors
orwarnings
cargo clippy
runs withouterrors
orwarnings
cargo fmt
was runDocumentation