Re: [RISCV] Why use SEMIHOST_flen for stat on RISCV?
Kito Cheng <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <CA+yXCZD2YgPO7M-pmha7W=q1VENS36X9se8RU+W8BkX=gxQgWA@mail.gmail.com> |
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 <[email protected]> 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. >