GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
decimal_float_ops Class Reference
Inheritance diagram for decimal_float_ops:
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
 
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
 

Detailed Description

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

Member Function Documentation

◆ binop()

void decimal_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

◆ compare()

int decimal_float_ops::compare ( const gdb_byte *  x,
const struct type type_x,
const gdb_byte *  y,
const struct type type_y 
) const
overridevirtual

◆ convert()

void decimal_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 2124 of file target-float.c.

References decimal_from_number(), and decimal_to_number().

◆ from_host_double()

void decimal_float_ops::from_host_double ( gdb_byte *  addr,
const struct type type,
double  val 
) const
inlineoverridevirtual

Implements target_float_ops.

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

◆ from_longest()

void decimal_float_ops::from_longest ( gdb_byte *  addr,
const struct type type,
LONGEST  val 
) const
overridevirtual

Implements target_float_ops.

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

References decimal_from_number().

◆ from_string()

bool decimal_float_ops::from_string ( gdb_byte *  addr,
const struct type type,
const std::string &  string 
) const
overridevirtual

◆ from_ulongest()

void decimal_float_ops::from_ulongest ( gdb_byte *  addr,
const struct type type,
ULONGEST  val 
) const
overridevirtual

Implements target_float_ops.

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

References decimal_from_number().

◆ to_host_double()

double decimal_float_ops::to_host_double ( const gdb_byte *  addr,
const struct type type 
) const
inlineoverridevirtual

Implements target_float_ops.

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

◆ to_longest()

LONGEST decimal_float_ops::to_longest ( const gdb_byte *  addr,
const struct type type 
) const
overridevirtual

Implements target_float_ops.

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

References to_string().

◆ to_string()

std::string decimal_float_ops::to_string ( const gdb_byte *  addr,
const struct type type,
const char *  format = nullptr 
) const
overridevirtual

Implements target_float_ops.

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

References type::length(), match_endianness(), and MAX_DECIMAL_STRING.

Referenced by to_longest().


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