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) |
gdb_mpz & | operator= (bool src) |
bool | set (const char *str, int base) |
gdb_mpz | pow (unsigned long exp) const |
template<typename T > | |
T | as_integer () const |
template<typename T > | |
T | as_integer_truncate () 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 |
void | truncate (gdb::array_view< gdb_byte > buf, enum bfd_endian byte_order, bool unsigned_p) const |
std::string | str () const |
~gdb_mpz () | |
void | negate () |
void | complement () |
void | mask (unsigned n) |
int | sgn () const |
operator bool () const | |
gdb_mpz & | operator*= (long other) |
gdb_mpz | operator* (const gdb_mpz &other) const |
gdb_mpz | operator/ (const gdb_mpz &other) const |
gdb_mpz | operator% (const gdb_mpz &other) const |
gdb_mpz & | operator+= (unsigned long other) |
gdb_mpz & | operator+= (const gdb_mpz &other) |
gdb_mpz | operator+ (const gdb_mpz &other) const |
gdb_mpz & | operator-= (unsigned long other) |
gdb_mpz & | operator-= (const gdb_mpz &other) |
gdb_mpz | operator- (const gdb_mpz &other) const |
gdb_mpz & | operator<<= (unsigned long nbits) |
gdb_mpz | operator<< (unsigned long nbits) const |
gdb_mpz | operator>> (unsigned long nbits) const |
gdb_mpz & | operator>>= (unsigned long nbits) |
gdb_mpz | operator& (const gdb_mpz &other) const |
gdb_mpz | operator| (const gdb_mpz &other) const |
gdb_mpz | operator^ (const gdb_mpz &other) const |
bool | operator> (const gdb_mpz &other) const |
bool | operator>= (const gdb_mpz &other) const |
bool | operator< (const gdb_mpz &other) const |
bool | operator<= (const gdb_mpz &other) const |
bool | operator< (long other) const |
template<typename T , typename = gdb::Requires<std::is_integral<T>>> | |
bool | operator== (T other) const |
bool | operator== (const gdb_mpz &other) const |
bool | operator!= (const gdb_mpz &other) const |
Static Public Member Functions | |
static gdb_mpz | pow (unsigned long base, unsigned long exp) |
Private Member Functions | |
template<typename T > | |
void | set (T src) |
void | export_bits (gdb::array_view< gdb_byte > buf, int endian, bool unsigned_p, bool safe) const |
Private Attributes | |
mpz_t | m_val |
Friends | |
struct | gdb_mpq |
struct | gdb_mpf |
Definition at line 39 of file gmp-utils.h.
|
inline |
|
inlineexplicit |
Definition at line 44 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 50 of file gmp-utils.h.
References m_val.
|
inlineexplicit |
Definition at line 61 of file gmp-utils.h.
|
inlineexplicit |
Definition at line 67 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 165 of file gmp-utils.h.
References m_val.
Definition at line 625 of file gmp-utils.h.
References export_bits().
Referenced by selftests::check_as_integer_raises_out_of_range_error(), check_valid_shift_count(), selftests::gdb_mpz_as_integer(), selftests::gdb_mpz_as_integer_out_of_range(), rust_parser::parse_array_type(), rust_parser::parse_field(), ppc64_sysv_abi_return_value_base(), unpack_long(), and selftests::write_and_extract().
Definition at line 641 of file gmp-utils.h.
References export_bits().
|
inline |
|
private |
Definition at line 69 of file gmp-utils.c.
References m_val, mask(), pow(), sgn(), and str().
Referenced by as_integer(), as_integer_truncate(), truncate(), and write().
|
inline |
Definition at line 178 of file gmp-utils.h.
References m_val.
Referenced by export_bits(), value_as_mpz(), and value_from_mpz().
|
inline |
Definition at line 168 of file gmp-utils.h.
References m_val.
Referenced by selftests::gdb_mpz_as_integer(), selftests::gdb_mpz_as_integer_out_of_range(), and get_dwarf2_unsigned_rational_constant().
|
inlineexplicit |
Definition at line 186 of file gmp-utils.h.
References sgn().
|
inline |
Definition at line 352 of file gmp-utils.h.
References m_val.
Definition at line 209 of file gmp-utils.h.
References m_val.
Definition at line 280 of file gmp-utils.h.
References m_val.
Definition at line 195 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 189 of file gmp-utils.h.
References m_val.
Definition at line 228 of file gmp-utils.h.
References m_val.
Definition at line 222 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 216 of file gmp-utils.h.
References m_val.
Definition at line 247 of file gmp-utils.h.
References m_val.
Definition at line 241 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 235 of file gmp-utils.h.
References m_val.
Definition at line 202 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 311 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 321 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 260 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 254 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 316 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 93 of file gmp-utils.h.
References m_val.
Definition at line 74 of file gmp-utils.h.
References m_val.
Definition at line 80 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 87 of file gmp-utils.h.
References set().
|
inline |
Definition at line 347 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 332 of file gmp-utils.h.
|
inline |
Definition at line 301 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 306 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 267 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 274 of file gmp-utils.h.
References m_val.
Definition at line 294 of file gmp-utils.h.
References m_val.
Definition at line 287 of file gmp-utils.h.
References m_val.
|
inlinestatic |
Definition at line 107 of file gmp-utils.h.
References m_val.
Referenced by export_bits(), finish_fixed_point_type(), fits_in_type(), selftests::gdb_mpz_as_integer(), selftests::gdb_mpz_as_integer_out_of_range(), rust_parser::lex_number(), and scalar_binop().
|
inline |
Definition at line 115 of file gmp-utils.h.
References m_val.
void gdb_mpz::read | ( | gdb::array_view< const gdb_byte > | buf, |
enum bfd_endian | byte_order, | ||
bool | unsigned_p ) |
Definition at line 46 of file gmp-utils.c.
References m_val.
Referenced by ppc64_sysv_abi_return_value_base(), gdb_mpq::read_fixed_point(), riscv_return_value(), selftests::store_and_read_back(), value_as_mpz(), and value_to_gdb_mpq().
|
inline |
Definition at line 101 of file gmp-utils.h.
Referenced by ada_get_gnat_encoded_number(), gdb_mpz(), rust_parser::lex_number(), and operator=().
Definition at line 604 of file gmp-utils.h.
References m_val.
|
inline |
Definition at line 183 of file gmp-utils.h.
References m_val.
Referenced by ada_value_binop(), export_bits(), fits_in_type(), and operator bool().
|
inline |
Definition at line 162 of file gmp-utils.h.
References gmp_string_printf(), and m_val.
Referenced by expr::dump_for_expression(), export_bits(), and set().
|
inline |
Definition at line 154 of file gmp-utils.h.
References export_bits().
Referenced by value_from_mpz().
|
inline |
Definition at line 145 of file gmp-utils.h.
References export_bits().
Referenced by processInt(), riscv_return_value(), value_cast_to_fixed_point(), selftests::write_and_extract(), gdb_mpq::write_fixed_point(), and gdb._GdbFile::writelines().
|
friend |
Definition at line 382 of file gmp-utils.h.
|
friend |
Definition at line 381 of file gmp-utils.h.
|
private |
Definition at line 384 of file gmp-utils.h.
Referenced by gdb_mpq::as_integer(), complement(), export_bits(), gdb_mpq::gdb_mpq(), gdb_mpz(), gdb_mpz(), gdb_mpz(), gdb_mpz(), gdb_mpz(), gdb_mpq::get_rounded(), mask(), negate(), operator!=(), operator%(), operator&(), operator*(), operator*=(), operator+(), operator+=(), operator+=(), operator-(), operator-=(), operator-=(), operator/(), operator<(), operator<(), operator<<(), operator<<=(), operator<=(), operator=(), operator=(), gdb_mpq::operator=(), operator=(), operator==(), operator==(), operator>(), operator>=(), operator>>(), operator>>=(), operator^(), operator|(), pow(), pow(), read(), gdb_mpq::read_fixed_point(), set(), set(), sgn(), str(), and ~gdb_mpz().