[PATCH] gdb: define COFF file offsets with file_ptr

Simon Marchi simark@simark.ca
Fri Nov 27 20:55:39 GMT 2020


On 2020-11-27 3:49 p.m., Jameson Nash wrote:
> It's (currently) computed as the difference of two file_ptr values. The result should be positive, certainly, as it's later used as either a file offset (with a printed warning) and as a size_t. But I'm more inclined to keep it common with the other values here, and use `file_ptr`, which is a signed integer type like `off_t` and `ssize_t`.

Ok, that's fine with me.

Simon


More information about the Gdb-patches mailing list