public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Kito Cheng <kito.cheng@gmail.com>
To: lifang_xia@linux.alibaba.com
Cc: Newlib <newlib@sourceware.org>
Subject: Re: [RISCV] Why use SEMIHOST_flen for stat on RISCV?
Date: Sun, 30 May 2021 15:09:02 +0800	[thread overview]
Message-ID: <CA+yXCZD2YgPO7M-pmha7W=q1VENS36X9se8RU+W8BkX=gxQgWA@mail.gmail.com> (raw)
In-Reply-To: <001001d753a1$d9c3d910$8d4b8b30$@linux.alibaba.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 <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.
>

      reply	other threads:[~2021-05-30  7:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-28  9:14 lifang_xia
2021-05-30  7:09 ` Kito Cheng [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+yXCZD2YgPO7M-pmha7W=q1VENS36X9se8RU+W8BkX=gxQgWA@mail.gmail.com' \
    --to=kito.cheng@gmail.com \
    --cc=lifang_xia@linux.alibaba.com \
    --cc=newlib@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).