From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53367 invoked by alias); 28 Apr 2018 01:19:48 -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 53323 invoked by uid 89); 28 Apr 2018 01:19:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*RU:74.125.82.65, Hx-spam-relays-external:74.125.82.65, H*F:D*in, Hx-languages-length:1101 X-HELO: mail-wm0-f65.google.com Received: from mail-wm0-f65.google.com (HELO mail-wm0-f65.google.com) (74.125.82.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 28 Apr 2018 01:19:44 +0000 Received: by mail-wm0-f65.google.com with SMTP id 66so5103319wmd.3 for ; Fri, 27 Apr 2018 18:19:44 -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; bh=vZgHQfW7KxECikf3D4ZOjZjeqgpN8d8aTj1DkXL5IDc=; b=U0Cg6hVAD8jYoh5wTBwh5P7lrAqsUJ1tr5G3SUfCxQQ7F68EuOa+n2cqLeeF5Z5go0 NKYdabXB1bLhpxuW2AhUPz05T4FObmWSjIxZbzIN2t/NXw7q21fE4xj5FbHDeSrGaE5f WoO0vp75rBIqAdLmeyBofC+MmZI1jXE9wzx7oyEPYik/PTkC/mtVC/tPcqtkkgSUjN8Y SX4R68LGibnIDjHyYuG5GWyndz7ZlELqV6UWqYGi6bDsgsvXeJVe00ZqycpMRNOf29dp lo6VWS0wX+t+owh/z0m4H7TpX6IUIBiHmkx9VQynojqSIiodiAA/5CEz8wYeX5EJNyW/ LUPg== X-Gm-Message-State: ALQs6tAeXd6/IJkRFyYB2sZcW3MYj6Oqyyro5CcqpxFQQEuRn04EjwRf zlIsocsKrYK5qmdSjs1Nh73AwisY X-Google-Smtp-Source: AB8JxZoETju3zaaKZ554n23fI+Yy6M04CsRp0Tg2eKGOk1ModQJQNP0R9SaAZ81JD2cJ1PMq2uIKaQ== X-Received: by 10.28.113.196 with SMTP id d65mr2496687wmi.157.1524878382112; Fri, 27 Apr 2018 18:19:42 -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.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Apr 2018 18:19:41 -0700 (PDT) From: Julio Guerra X-Google-Original-From: Julio Guerra To: gdb-patches@sourceware.org Cc: Mike Frysinger Subject: [PATCH 0/4] Some File I/O improvements for embedded programming Date: Sat, 28 Apr 2018 01:19:00 -0000 Message-Id: <20180428011940.115515-1-julio@farjump.io> X-SW-Source: 2018-04/txt/msg00586.txt.bz2 These patches bring some improvements to the File I/Os to allow advanced uses in embedded debugging/testing libraries mainly by: - Exporting the include/gdb/fileio.h which contains the File I/O-specific types to be able to reuse them in the target programs sending/receiving them. - Allowing opening special files, for example to mockup APIs through host's, using fifos, etc. Suggested a few years ago in the mailing-list: https://sourceware.org/ml/gdb/2016-07/msg00003.html Julio Guerra (4): Remove the restriction of File I/O functions to regular files only Do not clear the value of st_dev in File I/O's stat() Explicit fixed-width integral File I/O protocol types Install gdb/fileio.h gdb/ChangeLog | 20 +++++++++++++++ gdb/Makefile.in | 3 ++- gdb/common/fileio.c | 39 +++++++++++++++-------------- gdb/common/fileio.h | 8 +++--- gdb/remote-fileio.c | 51 ++++++++++---------------------------- include/gdb/fileio.h | 58 +++++++++++++++----------------------------- 6 files changed, 78 insertions(+), 101 deletions(-) -- 2.17.0