GDB (xrefs)
Loading...
Searching...
No Matches
Functions
target-float.h File Reference
#include "expression.h"

Go to the source code of this file.

Functions

bool target_float_is_valid (const gdb_byte *addr, const struct type *type)
 
bool target_float_is_zero (const gdb_byte *addr, const struct type *type)
 
std::string target_float_to_string (const gdb_byte *addr, const struct type *type, const char *format=nullptr)
 
bool target_float_from_string (gdb_byte *addr, const struct type *type, const std::string &string)
 
LONGEST target_float_to_longest (const gdb_byte *addr, const struct type *type)
 
void target_float_from_longest (gdb_byte *addr, const struct type *type, LONGEST val)
 
void target_float_from_ulongest (gdb_byte *addr, const struct type *type, ULONGEST val)
 
double target_float_to_host_double (const gdb_byte *addr, const struct type *type)
 
void target_float_from_host_double (gdb_byte *addr, const struct type *type, double val)
 
void target_float_convert (const gdb_byte *from, const struct type *from_type, gdb_byte *to, const struct type *to_type)
 
void target_float_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)
 
int target_float_compare (const gdb_byte *x, const struct type *type_x, const gdb_byte *y, const struct type *type_y)
 

Function Documentation

◆ target_float_binop()

void target_float_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 
)

◆ target_float_compare()

int target_float_compare ( const gdb_byte *  x,
const struct type type_x,
const gdb_byte *  y,
const struct type type_y 
)

◆ target_float_convert()

void target_float_convert ( const gdb_byte *  from,
const struct type from_type,
gdb_byte *  to,
const struct type to_type 
)

◆ target_float_from_host_double()

void target_float_from_host_double ( gdb_byte *  addr,
const struct type type,
double  val 
)

◆ target_float_from_longest()

void target_float_from_longest ( gdb_byte *  addr,
const struct type type,
LONGEST  val 
)

◆ target_float_from_string()

bool target_float_from_string ( gdb_byte *  addr,
const struct type type,
const std::string &  string 
)

◆ target_float_from_ulongest()

void target_float_from_ulongest ( gdb_byte *  addr,
const struct type type,
ULONGEST  val 
)

◆ target_float_is_valid()

bool target_float_is_valid ( const gdb_byte *  addr,
const struct type type 
)

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

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

Referenced by is_floating_value().

◆ target_float_is_zero()

bool target_float_is_zero ( const gdb_byte *  addr,
const struct type type 
)

◆ target_float_to_host_double()

double target_float_to_host_double ( const gdb_byte *  addr,
const struct type type 
)

◆ target_float_to_longest()

LONGEST target_float_to_longest ( const gdb_byte *  addr,
const struct type type 
)

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

References get_target_float_ops(), and target_float_ops::to_longest().

Referenced by unpack_long().

◆ target_float_to_string()

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