GMP library function body implementations

Torbjorn Granlund tg at
Fri Jan 27 08:12:41 CET 2012

Evgeny Rovinsky <evgeny.rovinsky at> writes:

  Is there a way to find the modifiable code for these functions
  ('mpz_get_str', as well as 'mpz_set_str_or_abort', 'mpz_cmp' etc.) in order
  to modify the source, rebuild and debug it to find my error?
I would have expected your debugger to find the source during your
debugging sessions, unhampered by the GMP name mangling.

To manually find the sources, I suggest that you use

   grep -rl mpz_set_str [GMP-SRC-DIR]


More information about the gmp-bugs mailing list