GDB (xrefs)
|
#include "gmp-utils.h"
Public Member Functions | |
gdb_mpz () | |
gdb_mpz (const mpz_t &from_val) | |
gdb_mpz (const gdb_mpz &from) | |
template<typename T , typename = gdb::Requires<std::is_integral<T>>> | |
gdb_mpz (T src) | |
gdb_mpz (gdb_mpz &&from) | |
gdb_mpz & | operator= (const gdb_mpz &from) |
gdb_mpz & | operator= (gdb_mpz &&other) |
template<typename T , typename = gdb::Requires<std::is_integral<T>>> | |
gdb_mpz & | operator= (T src) |
template<typename T > | |
T | as_integer () const |
void | read (gdb::array_view< const gdb_byte > buf, enum bfd_endian byte_order, bool unsigned_p) |
void | write (gdb::array_view< gdb_byte > buf, enum bfd_endian byte_order, bool unsigned_p) const |
std::string | str () const |
~gdb_mpz () | |
Public Attributes | |
mpz_t | val |
Private Member Functions | |
template<typename T > | |
void | set (T src) |
void | safe_export (gdb::array_view< gdb_byte > buf, int endian, bool unsigned_p) const |
Definition at line 38 of file gmp-utils.h.
|
inline |
Definition at line 43 of file gmp-utils.h.
References val.
|
inlineexplicit |
Definition at line 45 of file gmp-utils.h.
References val.
|
inline |
Definition at line 51 of file gmp-utils.h.
References val.
|
inlineexplicit |
Definition at line 62 of file gmp-utils.h.
|
inlineexplicit |
Definition at line 68 of file gmp-utils.h.
References val.
|
inline |
Definition at line 118 of file gmp-utils.h.
References val.
Definition at line 277 of file gmp-utils.h.
References safe_export().
Referenced by selftests::check_as_integer_raises_out_of_range_error(), selftests::gdb_mpz_as_integer(), selftests::gdb_mpz_as_integer_out_of_range(), ppc64_sysv_abi_return_value_base(), processInt(), unpack_long(), and selftests::write_and_extract().
Definition at line 75 of file gmp-utils.h.
References val.
Definition at line 81 of file gmp-utils.h.
References val.
|
inline |
Definition at line 88 of file gmp-utils.h.
References set().
void gdb_mpz::read | ( | gdb::array_view< const gdb_byte > | buf, |
enum bfd_endian | byte_order, | ||
bool | unsigned_p | ||
) |
Definition at line 45 of file gmp-utils.c.
References val.
Referenced by ppc64_sysv_abi_return_value_base(), gdb_mpq::read_fixed_point(), riscv_return_value(), selftests::store_and_read_back(), and value_to_gdb_mpq().
|
private |
Definition at line 78 of file gmp-utils.c.
Referenced by as_integer(), and write().
Definition at line 256 of file gmp-utils.h.
References val.
Referenced by gdb_mpz(), and operator=().
|
inline |
Definition at line 115 of file gmp-utils.h.
References gmp_string_printf(), and val.
Referenced by safe_export().
void gdb_mpz::write | ( | gdb::array_view< gdb_byte > | buf, |
enum bfd_endian | byte_order, | ||
bool | unsigned_p | ||
) | const |
Definition at line 68 of file gmp-utils.c.
References safe_export().
Referenced by processInt(), riscv_return_value(), value_cast_to_fixed_point(), selftests::write_and_extract(), gdb_mpq::write_fixed_point(), and gdb._GdbFile::writelines().
mpz_t gdb_mpz::val |
Definition at line 40 of file gmp-utils.h.
Referenced by gdb.printing._EnumInstance::__init__(), gdb.FrameDecorator.SymValueWrapper::__init__(), gdb.printer.bound_registers.MpxBound128Printer::__init__(), gdb-gdb.TypeFlagsPrinter::__str__(), ada_get_gnat_encoded_number(), gdb-gdb.StructMainTypePrettyPrinter::bound_img(), gdb-gdb.StructMainTypePrettyPrinter::bounds_img(), finish_fixed_point_type(), gdb-gdb.StructMainTypePrettyPrinter::flags_to_string(), gdb_mpz(), selftests::gdb_mpz_as_integer(), selftests::gdb_mpz_as_integer_out_of_range(), selftests::gdb_mpz_read_all_from_small(), selftests::gdb_mpz_read_min_max(), get_dwarf2_unsigned_rational_constant(), gdb_mpq::get_rounded(), has_zero_over_zero_small_attribute(), operator=(), gdb-gdb.StructMainTypePrettyPrinter::owner_to_string(), processInt(), read(), gdb_mpq::read_fixed_point(), safe_export(), set(), selftests::store_and_read_back(), str(), gdb-gdb.StructMainTypePrettyPrinter::struct_field_img(), gdb.printer.bound_registers.MpxBound128Printer::to_string(), gdb.printing._EnumInstance::to_string(), gdb-gdb.StructTypePrettyPrinter::to_string(), gdb-gdb.StructMainTypePrettyPrinter::to_string(), gdb-gdb.StructMainTypePrettyPrinter::type_specific_img(), unpack_long(), gdb.FrameDecorator.SymValueWrapper::value(), value_to_gdb_mpq(), and ~gdb_mpz().