Re: About gmp and mpfr dependencies for gdb building

lijiang via Gdb
2025-03-17T08:30:08Z

On Fri, Mar 14, 2025 at 6:09 AM Tom Tromey <tom@tromey.com> wrote:

> Andrew> GCC has its own wide-int implementation which might be useful to
> pull
> Andrew> into GDB if needed. It is used for BitInt and wide integer too.
>
> FWIW I tried this once but it was a pain, and also the API seemed pretty
> gross. I don't remember the details though.
>

Thank you so much, Tom and Andrew.

I tried to cross compile the gmp and mpfr for the crash-utility, and
succeeded.

https://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.2.1.tar.bz2
https://gcc.gnu.org/pub/gcc/infrastructure/mpfr-4.1.0.tar.bz2

Looks like this is easier than implementing an option to enable/disable gmp
and mpfr. :-)

Thanks
Lianbo

>
> Tom
>
>