GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Member Functions | List of all members
mpfr_float_ops Class Reference
Inheritance diagram for mpfr_float_ops:
target_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
 
virtual std::string to_string (const gdb_byte *addr, const struct type *type, const char *format) const =0
 
virtual bool from_string (gdb_byte *addr, const struct type *type, const std::string &string) const =0
 
virtual LONGEST to_longest (const gdb_byte *addr, const struct type *type) const =0
 
virtual void from_longest (gdb_byte *addr, const struct type *type, LONGEST val) const =0
 
virtual void from_ulongest (gdb_byte *addr, const struct type *type, ULONGEST val) const =0
 
virtual double to_host_double (const gdb_byte *addr, const struct type *type) const =0
 
virtual void from_host_double (gdb_byte *addr, const struct type *type, double val) const =0
 
virtual void convert (const gdb_byte *from, const struct type *from_type, gdb_byte *to, const struct type *to_type) const =0
 
virtual 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 =0
 
virtual int compare (const gdb_byte *x, const struct type *type_x, const gdb_byte *y, const struct type *type_y) const =0
 

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 1165 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
overridevirtual

Implements target_float_ops.

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

References 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
overridevirtual

Implements target_float_ops.

Definition at line 1702 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
overridevirtual

Implements target_float_ops.

Definition at line 1634 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
overridevirtual

Implements target_float_ops.

Definition at line 1621 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
overridevirtual

Implements target_float_ops.

Definition at line 1586 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
overridevirtual

Implements target_float_ops.

Definition at line 1555 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

◆ 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 1340 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
overridevirtual

Implements target_float_ops.

Definition at line 1598 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
overridevirtual

Implements target_float_ops.

Definition at line 1610 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
overridevirtual

Implements target_float_ops.

Definition at line 1575 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
overridevirtual

◆ to_target() [1/2]

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

◆ to_target() [2/2]

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

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