[Lldb-commits] [PATCH] D111052: [lldb] [gdb-remote] Correct st_dev values in vFile:fstat packet

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 5 04:29:44 PDT 2021


labath added a comment.

In D111052#3042184 <https://reviews.llvm.org/D111052#3042184>, @mgorny wrote:

> In D111052#3042181 <https://reviews.llvm.org/D111052#3042181>, @labath wrote:
>
>> So I guess all that's left to do is to add some cast to placate compilers ?
>
> 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.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111052/new/

https://reviews.llvm.org/D111052



More information about the lldb-commits mailing list