Re: About gmp and mpfr dependencies for gdb building

Tom Tromey
2025-03-13T20:30:44Z

> For the gmp and mpfr dependency libs, is it possible to provide an
> option to enable/disable the gmp and mpfr instead of forcely enabling
> them when building gdb?

Not currently.

You could probably try to implement it. One way might be to replace the
use of GMP with a custom wide-int implementation; or with (assuming
IIRC) the slower single-header GMP implementation. Not sure about MPFR.

Probably use of wide-int in gdb is just going to grow due to 128-bit
ints becoming more common.

thanks,
Tom