* [RISCV] Why use SEMIHOST_flen for stat on RISCV?
@ 2021-05-28 9:14 lifang_xia
2021-05-30 7:09 ` Kito Cheng
0 siblings, 1 reply; 2+ messages in thread
From: lifang_xia @ 2021-05-28 9:14 UTC (permalink / raw)
To: newlib
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RISCV] Why use SEMIHOST_flen for stat on RISCV?
2021-05-28 9:14 [RISCV] Why use SEMIHOST_flen for stat on RISCV? lifang_xia
@ 2021-05-30 7:09 ` Kito Cheng
0 siblings, 0 replies; 2+ messages in thread
From: Kito Cheng @ 2021-05-30 7:09 UTC (permalink / raw)
To: lifang_xia; +Cc: Newlib
It's listed on RISC-V semihost spec, and both OpenOCD and Qemu support
SEMIHOST_flen,
so I would suggest you implement that on gdb.
On Fri, May 28, 2021 at 5:30 PM <lifang_xia@linux.alibaba.com> wrote:
>
> 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.
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-30 7:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-28 9:14 [RISCV] Why use SEMIHOST_flen for stat on RISCV? lifang_xia
2021-05-30 7:09 ` Kito Cheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).