[PATCH 5/5] Document the 'info proc files' command.

Eli Zaretskii eliz@gnu.org
Mon Sep 10 19:13:00 GMT 2018


> Cc: gdb-patches@sourceware.org
> From: John Baldwin <jhb@FreeBSD.org>
> Date: Mon, 10 Sep 2018 11:43:16 -0700
> 
> >   Show the file descriptors open by the process.  For each open file
> >   descriptor, @value{GDBN} shows its number, type (file, directory,
> >   character device, socket), offset, and the name of the resource open
> >   on the descriptor.  The resource name can be a file name (for files,
> >   directories, and devices) or a protocol followed by socket address
> >   (for network connections).
> 
> This looks better to me, thanks.
> 
> > This lacks the details about "offset", which you didn't describe, and
> > I couldn't guess.
> 
> Some file descriptors (for files for example) include a read/write offset
> (the thing lseek() changes) used as the starting offset of read() and
> write() (but not for syscalls like pread() and pwrite() that take an
> explicit offset).  This value is usually referred to as the "offset" of
> the file descriptor (e.g. in man pages for lseek).

I'd say "file pointer offset", then.



More information about the Gdb-patches mailing list