Re: I compile gdbserver for RISCV on gdb10.1 version, and there is a error

Simon Marchi <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On 2020-11-12 9:43 p.m., [email protected] 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
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.