This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 2/4] Do not clear the value of st_dev in File I/O's stat()
- From: Julio Guerra <guerr at julio dot in>
- To: gdb-patches at sourceware dot org
- Cc: Mike Frysinger <vapier at gentoo dot org>
- Date: Sat, 28 Apr 2018 03:19:38 +0200
- Subject: [PATCH 2/4] Do not clear the value of st_dev in File I/O's stat()
- References: <20180428011940.115515-1-julio@farjump.io>
There is no reason to clear st_dev, while it is not in `remote_fileio_func_fstat()`.
2018-04-28 Julio Guerra <julio@farjump.io>
* gdb/remote-fileio.c: do not clear the value of st_dev in File I/O's stat().
Signed-off-by: Julio Guerra <julio@farjump.io>
---
gdb/ChangeLog | 4 ++++
gdb/remote-fileio.c | 1 -
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a9ddac5f98..6986798f08 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2018-04-28 Julio Guerra <julio@farjump.io>
+
+ * gdb/remote-fileio.c: do not clear the value of st_dev in File I/O's stat().
+
2018-04-28 Julio Guerra <julio@farjump.io>
* gdb/remote-fileio.c: allow using File I/O functions with special
diff --git a/gdb/remote-fileio.c b/gdb/remote-fileio.c
index fa3cb15033..e855c682a0 100644
--- a/gdb/remote-fileio.c
+++ b/gdb/remote-fileio.c
@@ -870,7 +870,6 @@ remote_fileio_func_stat (char *buf)
if (statptr)
{
host_to_fileio_stat (&st, &fst);
- host_to_fileio_uint (0, fst.fst_dev);
errno = target_write_memory (statptr, (gdb_byte *) &fst, sizeof fst);
if (errno != 0)
--
2.17.0