Convert long_const_operation to use gdb_mpz

This changes long_const_operation to use gdb_mpz for its storage.
This commit is contained in:
Tom Tromey
2023-03-27 12:54:51 -06:00
parent 767c4b92bc
commit 5309ce2f04
4 changed files with 33 additions and 7 deletions

View File

@@ -108,6 +108,12 @@ dump_for_expression (struct ui_file *stream, int depth, CORE_ADDR addr)
core_addr_to_string (addr));
}
void
dump_for_expression (struct ui_file *stream, int depth, const gdb_mpz &val)
{
gdb_printf (stream, _("%*sConstant: %s\n"), depth, "", val.str ().c_str ());
}
void
dump_for_expression (struct ui_file *stream, int depth, internalvar *ivar)
{