From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53452 invoked by alias); 28 Apr 2018 01:19:49 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 53357 invoked by uid 89); 28 Apr 2018 01:19:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1186, H*r:sk:u18-v6s X-HELO: mail-wr0-f194.google.com Received: from mail-wr0-f194.google.com (HELO mail-wr0-f194.google.com) (209.85.128.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 28 Apr 2018 01:19:46 +0000 Received: by mail-wr0-f194.google.com with SMTP id u18-v6so3257124wrg.3 for ; Fri, 27 Apr 2018 18:19:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=JOuyT5mdgupsFx7ofe585aztu2E+aCAeScN7+se1DNQ=; b=hBFAXCY24edOX6QX987/wli3DSpvVvGPVxA+V5iNDu+zAaNzvcX8TpxN5ycbGodlZm 5TGzFAMYP34jQC58AqEw1/xqneZ2t/C09ArU31L0NpPsd9flXdLMjZKkz+X4z/Lmq+Xc WCc/RoG9pEoYoitJvZIy/dqthDxsKjO0hRQR/UMMM3cGc1SQmVBM9VjJdZN/w84OnRA5 S8FCMWgqkgZo+x8JqCifHwUGMGZPc2rbIsUtBv0UcXylA4NiZGYg6DAPD7L7zEseJ/JF 8KpGeOcPbj91A1BcWey3eadVUMMECKcULfql2mWo++8sgHGpbnZyvp+LSP9yM7wXdSQS jd9Q== X-Gm-Message-State: ALQs6tAduO+m1ypaN1tj/Fn4B88HHuGchVsnQonERZZWfgUa97jbiFTP ul10MDc+CExtPlyqMwvm77ZufIhk X-Google-Smtp-Source: AB8JxZq3ZXmlxRnFre1AzW99g0dmOw8A8WoNuOsa6riWqQ2cUwsis1COidZebda4j5f/oIUdM3cnZQ== X-Received: by 2002:adf:9d0d:: with SMTP id k13-v6mr3368760wre.179.1524878384173; Fri, 27 Apr 2018 18:19:44 -0700 (PDT) Received: from localhost.localdomain (243-213-190-109.dsl.ovh.fr. [109.190.213.243]) by smtp.gmail.com with ESMTPSA id b13sm2570379wmi.42.2018.04.27.18.19.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Apr 2018 18:19:43 -0700 (PDT) From: Julio Guerra X-Google-Original-From: Julio Guerra To: gdb-patches@sourceware.org Cc: Mike Frysinger Subject: [PATCH 2/4] Do not clear the value of st_dev in File I/O's stat() Date: Sat, 28 Apr 2018 01:19:00 -0000 Message-Id: <20180428011940.115515-3-julio@farjump.io> In-Reply-To: <20180428011940.115515-1-julio@farjump.io> References: <20180428011940.115515-1-julio@farjump.io> X-SW-Source: 2018-04/txt/msg00588.txt.bz2 There is no reason to clear st_dev, while it is not in `remote_fileio_func_fstat()`. 2018-04-28 Julio Guerra * gdb/remote-fileio.c: do not clear the value of st_dev in File I/O's stat(). Signed-off-by: Julio Guerra --- 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 + + * gdb/remote-fileio.c: do not clear the value of st_dev in File I/O's stat(). + 2018-04-28 Julio Guerra * 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