From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by sourceware.org (Postfix) with ESMTPS id CE1C03857001 for ; Fri, 28 May 2021 09:14:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CE1C03857001 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=lifang_xia@linux.alibaba.com X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R511e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04423; MF=lifang_xia@linux.alibaba.com; NM=1; PH=DS; RN=1; SR=0; TI=SMTPD_---0UaMCc0w_1622193263; Received: from PF1K7H4W(mailfrom:lifang_xia@linux.alibaba.com fp:SMTPD_---0UaMCc0w_1622193263) by smtp.aliyun-inc.com(127.0.0.1); Fri, 28 May 2021 17:14:23 +0800 From: To: Subject: [RISCV] Why use SEMIHOST_flen for stat on RISCV? Date: Fri, 28 May 2021 17:14:23 +0800 Message-ID: <001001d753a1$d9c3d910$8d4b8b30$@linux.alibaba.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AddToNs/+wm0+VfuStKoeK+ktCnzFA== Content-Language: zh-cn X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_20, ENV_AND_HDR_SPF_MATCH, HTML_MESSAGE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 May 2021 09:14:30 -0000 Hi, Recently, when using semihosting to do some test in a project, I found that the stat syscall of RISCV uses SEMIHOST_flen, but this syscall is not in the GDB file-IO support list. Only supported in openOCD. What are the considerations for doing this? May I modify it to "stat" and "fstat" supported by GDB's FILE-IO? Thanks, Lifang Xia.