GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
host_float_ops< T > Class Template Reference
Inheritance diagram for host_float_ops< T >:
target_float_ops

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, T *to) const
 
void from_target (const struct type *type, const gdb_byte *from, T *to) const
 
void to_target (const struct type *type, const T *from, gdb_byte *to) const
 
void to_target (const struct floatformat *fmt, const T *from, gdb_byte *to) const
 

Detailed Description

template<typename T>
class host_float_ops< T >

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

Member Function Documentation

◆ binop()

template<typename T >
void host_float_ops< T >::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 1084 of file target-float.c.

◆ compare()

template<typename T >
int host_float_ops< T >::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 1140 of file target-float.c.

◆ convert()

template<typename T >
void host_float_ops< T >::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 1069 of file target-float.c.

References host_float.

◆ from_host_double()

template<typename T >
void host_float_ops< T >::from_host_double ( gdb_byte * addr,
const struct type * type,
double val ) const
overridevirtual

Implements target_float_ops.

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

References host_float.

◆ from_longest()

template<typename T >
void host_float_ops< T >::from_longest ( gdb_byte * addr,
const struct type * type,
LONGEST val ) const
overridevirtual

Implements target_float_ops.

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

References host_float.

◆ from_string()

template<typename T >
bool host_float_ops< T >::from_string ( gdb_byte * addr,
const struct type * type,
const std::string & string ) const
overridevirtual

Implements target_float_ops.

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

References host_float.

◆ from_target() [1/2]

template<typename T >
void host_float_ops< T >::from_target ( const struct floatformat * fmt,
const gdb_byte * from,
T * to ) const
private

◆ from_target() [2/2]

template<typename T >
void host_float_ops< T >::from_target ( const struct type * type,
const gdb_byte * from,
T * to ) const
private

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

References floatformat_from_type().

◆ from_ulongest()

template<typename T >
void host_float_ops< T >::from_ulongest ( gdb_byte * addr,
const struct type * type,
ULONGEST val ) const
overridevirtual

Implements target_float_ops.

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

References host_float.

◆ to_host_double()

template<typename T >
double host_float_ops< T >::to_host_double ( const gdb_byte * addr,
const struct type * type ) const
overridevirtual

Implements target_float_ops.

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

References host_float.

◆ to_longest()

template<typename T >
LONGEST host_float_ops< T >::to_longest ( const gdb_byte * addr,
const struct type * type ) const
overridevirtual

Implements target_float_ops.

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

References host_float.

◆ to_string()

template<typename T >
std::string host_float_ops< T >::to_string ( const gdb_byte * addr,
const struct type * type,
const char * format ) const
overridevirtual

Implements target_float_ops.

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

References floatformat_from_type(), floatformat_printf_format(), and host_float.

◆ to_target() [1/2]

template<typename T >
void host_float_ops< T >::to_target ( const struct floatformat * fmt,
const T * from,
gdb_byte * to ) const
private

◆ to_target() [2/2]

template<typename T >
void host_float_ops< T >::to_target ( const struct type * type,
const T * from,
gdb_byte * to ) const
private

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

References floatformat_from_type(), and type::length().


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