This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: minor doc fix
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
>> Date: Wed, 30 Jul 2008 16:54:43 +0100
>> From: Bart Veer <bartv@ecoscentric.com>
>>
>> Current docs for the remote protocol file I/O extension state that a
>> struct timeval is 8 bytes. It is actually 12, a 4-byte time_t tv_sec
>> and an 8-byte long tv_usec.
Eli> You are on a 64-bit machine, right? On a 32-bit machine, a
Eli> long takes 4 bytes, like an int.
Eli> So if you want to get this text right, you will need to
Eli> rewrite it such that it is correct on both architectures.
The text is not talking about host-side or target-side data
structures. It is describing a protocol, what gets transferred between
host and target for a gettimeofday request, which happens to be 12
bytes and not 8.
Bart