[RISCV] Why use SEMIHOST_flen for stat on RISCV?

<[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.