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 )
extern

◆ 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 )
extern

◆ target_float_convert()

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

◆ target_float_from_host_double()

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

◆ target_float_from_longest()

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

◆ target_float_from_string()

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

◆ target_float_from_ulongest()

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

◆ target_float_is_valid()

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

Definition at line 2308 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 )
extern

◆ target_float_to_host_double()

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

◆ target_float_to_longest()

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

Definition at line 2382 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 )
extern