GDB (xrefs)

Classes | Public Member Functions | Private Member Functions | List of all members
mpfr_float_ops Class Reference
Inheritance diagram for mpfr_float_ops:

## Classes
class | gdb_mpfr

## Public Member Functions
std::string | to_string (const gdb_byte *addr, const struct type *type, const char *format) const override
bool | from_string (gdb_byte *addr, const struct type *type, const std::string &string) const override
LONGEST | to_longest (const gdb_byte *addr, const struct type *type) const override
void | from_longest (gdb_byte *addr, const struct type *type, LONGEST val) const override
void | from_ulongest (gdb_byte *addr, const struct type *type, ULONGEST val) const override
double | to_host_double (const gdb_byte *addr, const struct type *type) const override
void | from_host_double (gdb_byte *addr, const struct type *type, double val) const override
void | convert (const gdb_byte *from, const struct type *from_type, gdb_byte *to, const struct type *to_type) const override
void | binop (enum exp_opcode opcode, const gdb_byte *x, const struct type *type_x, const gdb_byte *y, const struct type *type_y, gdb_byte *res, const struct type *type_res) const override
int | compare (const gdb_byte *x, const struct type *type_x, const gdb_byte *y, const struct type *type_y) const override

## Private Member Functions
void | from_target (const struct floatformat *fmt, const gdb_byte *from, gdb_mpfr &to) const
void | from_target (const struct type *type, const gdb_byte *from, gdb_mpfr &to) const
void | to_target (const struct type *type, const gdb_mpfr &from, gdb_byte *to) const
void | to_target (const struct floatformat *fmt, const gdb_mpfr &from, gdb_byte *to) const

## Detailed Description

Definition at line 1154 of file target-float.c.

## Member Function Documentation

## ◆ binop()

void mpfr_float_ops::binop | ( | enum exp_opcode | opcode,
|  | const gdb_byte * | x,
|  | const struct type * | type_x,
|  | const gdb_byte * | y,
|  | const struct type * | type_y,
|  | gdb_byte * | res,
|  | const struct type * | type_res
| ) |  | const
| override virtual

Implements target_float_ops.

Definition at line 1639 of file target-float.c.

References _, error(), from_target(), to_target(), and mpfr_float_ops::gdb_mpfr::val.

## ◆ compare()

int mpfr_float_ops::compare | ( | const gdb_byte * | x,
|  | const struct type * | type_x,
|  | const gdb_byte * | y,
|  | const struct type * | type_y
| ) |  | const
| override virtual

Implements target_float_ops.

Definition at line 1691 of file target-float.c.

References from_target(), and mpfr_float_ops::gdb_mpfr::val.

## ◆ convert()

void mpfr_float_ops::convert | ( | const gdb_byte * | from,
|  | const struct type * | from_type,
|  | gdb_byte * | to,
|  | const struct type * | to_type
| ) |  | const
| override virtual

Implements target_float_ops.

Definition at line 1623 of file target-float.c.

References from_target(), to_target(), and mpfr_float_ops::gdb_mpfr::val.

## ◆ from_host_double()

void mpfr_float_ops::from_host_double | ( | gdb_byte * | addr,
|  | const struct type * | type,
|  | double | val
| ) |  | const
| override virtual

Implements target_float_ops.

Definition at line 1610 of file target-float.c.

References to_target(), and mpfr_float_ops::gdb_mpfr::val.

## ◆ from_longest()

void mpfr_float_ops::from_longest | ( | gdb_byte * | addr,
|  | const struct type * | type,
|  | LONGEST | val
| ) |  | const
| override virtual

Implements target_float_ops.

Definition at line 1575 of file target-float.c.

References to_target(), and mpfr_float_ops::gdb_mpfr::val.

## ◆ from_string()

bool mpfr_float_ops::from_string | ( | gdb_byte * | addr,
|  | const struct type * | type,
|  | const std::string & | string
| ) |  | const
| override virtual

Implements target_float_ops.

Definition at line 1544 of file target-float.c.

References to_target(), and mpfr_float_ops::gdb_mpfr::val.

## ◆ from_target() [1/2]

void mpfr_float_ops::from_target | ( | const struct floatformat * | fmt,
|  | const gdb_byte * | from,
|  | gdb_mpfr & | to
| ) |  | const
| private

Definition at line 1221 of file target-float.c.

References float_infinite, float_nan, FLOATFORMAT_CHAR_BIT, floatformat_classify(), floatformat_is_negative(), FLOATFORMAT_LARGEST_BYTES, floatformat_normalize_byteorder(), gdb_assert, get_field(), and mpfr_float_ops::gdb_mpfr::val.

Referenced by binop(), compare(), convert(), from_target(), to_host_double(), to_longest(), and to_string().

## ◆ from_target() [2/2]

void mpfr_float_ops::from_target | ( | const struct type * | type,
|  | const gdb_byte * | from,
|  | gdb_mpfr & | to
| ) |  | const
| private

Definition at line 1329 of file target-float.c.

References floatformat_from_type(), and from_target().

## ◆ from_ulongest()

void mpfr_float_ops::from_ulongest | ( | gdb_byte * | addr,
|  | const struct type * | type,
|  | ULONGEST | val
| ) |  | const
| override virtual

Implements target_float_ops.

Definition at line 1587 of file target-float.c.

References to_target(), and mpfr_float_ops::gdb_mpfr::val.

## ◆ to_host_double()

double mpfr_float_ops::to_host_double | ( | const gdb_byte * | addr,
|  | const struct type * | type
| ) |  | const
| override virtual

Implements target_float_ops.

Definition at line 1599 of file target-float.c.

References from_target(), and mpfr_float_ops::gdb_mpfr::val.

## ◆ to_longest()

LONGEST mpfr_float_ops::to_longest | ( | const gdb_byte * | addr,
|  | const struct type * | type
| ) |  | const
| override virtual

Implements target_float_ops.

Definition at line 1564 of file target-float.c.

References from_target(), and mpfr_float_ops::gdb_mpfr::val.

## ◆ to_string()

std::string mpfr_float_ops::to_string | ( | const gdb_byte * | addr,
|  | const struct type * | type,
|  | const char * | format
| ) |  | const
| override virtual

Implements target_float_ops.

Definition at line 1499 of file target-float.c.

References float_infinite, float_nan, floatformat_classify(), floatformat_from_type(), floatformat_is_negative(), floatformat_mantissa(), floatformat_printf_format(), from_target(), size, string, string_printf(), and mpfr_float_ops::gdb_mpfr::val.

## ◆ to_target() [1/2]

void mpfr_float_ops::to_target | ( | const struct type * | type,
|  | const gdb_mpfr & | from,
|  | gdb_byte * | to
| ) |  | const
| private

Definition at line 1487 of file target-float.c.

References floatformat_from_type(), memset(), and TYPE_LENGTH.

Referenced by binop(), convert(), from_host_double(), from_longest(), from_string(), from_ulongest(), and to_target().

## ◆ to_target() [2/2]

void mpfr_float_ops::to_target | ( | const struct floatformat * | fmt,
|  | const gdb_mpfr & | from,
|  | gdb_byte * | to
| ) |  | const
| private

Definition at line 1336 of file target-float.c.

References FLOATFORMAT_CHAR_BIT, FLOATFORMAT_LARGEST_BYTES, floatformat_normalize_byteorder(), floatformat_totalsize_bytes(), L, memset(), put_field(), to_target(), and mpfr_float_ops::gdb_mpfr::val.

The documentation for this class was generated from the following file:

- /tmp/gdb-8.1/gdb/target-float.c