Correct the st_dev values used by vFile:fstat packet to conform to
the GDB protocol. Thanks to Raphael Isemann for noticing.
Details
- Reviewers
teemperor labath krytarowski emaste
Diff Detail
Event Timeline
LGTM. Could you maybe add a FIXME: at the end of that comment to point out that the whole 'console' thing isn't implemented/supported.
Probably wait and see if Pavel has any objections against this, but I think this is more correct than the old implementation so I think this can land.
@labath has pointed out that this seems not to apply to the vFile:fstat that we're using — gdbserver seems to pass (truncated) st_dev there.
Nah, my original logic checks for overflow and replaces the value with 0 if one occurs (which IMO is more correct than truncating the value).
I was talking about the warning Raphael ran into.
We already discussed truncation vs 0 on the initial patch. I don't think we need to strictly copy gdb behavior here, though I would also be fine with changing it.