public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* Re: remote/2550: st_dev field not set for remote 'fstat' of file
@ 2008-11-10 16:18 Richard Stuckey
0 siblings, 0 replies; 2+ messages in thread
From: Richard Stuckey @ 2008-11-10 16:18 UTC (permalink / raw)
To: nobody; +Cc: gdb-prs
The following reply was made to PR remote/2550; it has been noted by GNATS.
From: Richard Stuckey <richard.stuckey@arc.com>
To: gdb-gnats@sources.redhat.com
Cc:
Subject: Re: remote/2550: st_dev field not set for remote 'fstat' of file
Date: Mon, 10 Nov 2008 16:11:05 +0000
The function names 'target_*' in the description should have been
'remote_*'.
^ permalink raw reply [flat|nested] 2+ messages in thread
* remote/2550: st_dev field not set for remote 'fstat' of file
@ 2008-11-10 16:08 richard.stuckey
0 siblings, 0 replies; 2+ messages in thread
From: richard.stuckey @ 2008-11-10 16:08 UTC (permalink / raw)
To: gdb-gnats
>Number: 2550
>Category: remote
>Synopsis: st_dev field not set for remote 'fstat' of file
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 10 16:08:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: ARC International
>Release: 6.8
>Organization:
>Environment:
>Description:
The function target_fileio_to_fio_stat in file remote-fileio.c does not set the 'st_dev' field of the 'struct fio_stat' that it is constructing; there is a comment in the code that this is done by the calling function.
However, in the function remote_fileio_func_fstat (one of its callers), this is only done for the console_in/out files - the field is left undefined for other files.
The fix is to add the line
target_fileio_to_fio_uint (st.st_dev, fst.fst_dev);
to the 'else' part a few lines before the call to target_fileio_to_fio_stat, immediately after the call to fstat.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-10 16:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-10 16:18 remote/2550: st_dev field not set for remote 'fstat' of file Richard Stuckey
-- strict thread matches above, loose matches on Subject: below --
2008-11-10 16:08 richard.stuckey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).