public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: hilihui@sina.com, gdb <gdb@sourceware.org>
Subject: Re: I compile gdbserver for RISCV on gdb10.1 version, and there is a error
Date: Fri, 13 Nov 2020 08:13:41 -0500	[thread overview]
Message-ID: <aa367527-37a7-2ff5-110e-cf840936f4af@simark.ca> (raw)
In-Reply-To: <20201113024303.A8362464046E@webmail.sinamail.sina.com.cn>

On 2020-11-12 9:43 p.m., hilihui@sina.com wrote:
> ../../gdbserver/linux-riscv-low.cc:170:42: error: invalid application of 'sizeof' to incomplete type '__riscv_mc_q_ext_state'     sizeof (struct __riscv_mc_q_ext_state), OPTIONAL_REGS,                                          ^It seems that  "__riscv_mc_q_ext_state" is not defined. How to resolve this question? Thanks!
> 

In glibc, this type is provided here:

https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/riscv/sys/ucontext.h;h=a4e49fe37a1397fa1babeb0dcefb77341f1e7ad1;hb=HEAD#l65

And it appears to have been there since the beginning of the RISC-V support.

What libc is your system using?

Simon

  reply	other threads:[~2020-11-13 13:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-13  2:43 hilihui
2020-11-13 13:13 ` Simon Marchi [this message]
2020-11-14  3:08   ` Jim Wilson
     [not found] <20201116133833.1659C5D000A6@webmail.sinamail.sina.com.cn>
2020-11-16 21:55 ` Jim Wilson
2020-11-20 15:47   ` Rodney M. Bates
2020-11-20 20:37     ` Jim Wilson
2020-11-21 17:03       ` Rodney M. Bates

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=aa367527-37a7-2ff5-110e-cf840936f4af@simark.ca \
    --to=simark@simark.ca \
    --cc=gdb@sourceware.org \
    --cc=hilihui@sina.com \
    /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).