GDB (API)
Defines | Functions
/home/stan/gdb/src/gdb/valarith.c File Reference
#include "defs.h"
#include "value.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "expression.h"
#include "target.h"
#include "language.h"
#include "gdb_string.h"
#include "doublest.h"
#include "dfp.h"
#include <math.h>
#include "infcall.h"
#include "exceptions.h"

Go to the source code of this file.

Defines

#define TRUNCATION_TOWARDS_ZERO   ((-5 / 2) == -2)

Functions

void _initialize_valarith (void)
struct value * value_ptradd (struct value *arg1, LONGEST arg2)
LONGEST value_ptrdiff (struct value *arg1, struct value *arg2)
struct value * value_subscript (struct value *array, LONGEST index)
struct value * value_subscripted_rvalue (struct value *array, LONGEST index, int lowerbound)
int binop_types_user_defined_p (enum exp_opcode op, struct type *type1, struct type *type2)
int binop_user_defined_p (enum exp_opcode op, struct value *arg1, struct value *arg2)
int unop_user_defined_p (enum exp_opcode op, struct value *arg1)
struct value * value_x_binop (struct value *arg1, struct value *arg2, enum exp_opcode op, enum exp_opcode otherop, enum noside noside)
struct value * value_x_unop (struct value *arg1, enum exp_opcode op, enum noside noside)
struct value * value_concat (struct value *arg1, struct value *arg2)
struct value * value_vector_widen (struct value *scalar_value, struct type *vector_type)
struct value * value_binop (struct value *arg1, struct value *arg2, enum exp_opcode op)
int value_logical_not (struct value *arg1)
int value_equal (struct value *arg1, struct value *arg2)
int value_equal_contents (struct value *arg1, struct value *arg2)
int value_less (struct value *arg1, struct value *arg2)
struct value * value_pos (struct value *arg1)
struct value * value_neg (struct value *arg1)
struct value * value_complement (struct value *arg1)
int value_bit_index (struct type *type, const gdb_byte *valaddr, int index)
int value_in (struct value *element, struct value *set)

Define Documentation

#define TRUNCATION_TOWARDS_ZERO   ((-5 / 2) == -2)

Definition at line 38 of file valarith.c.


Function Documentation

void _initialize_valarith ( void  )
int binop_types_user_defined_p ( enum exp_opcode  op,
struct type type1,
struct type type2 
)

Definition at line 230 of file valarith.c.

int binop_user_defined_p ( enum exp_opcode  op,
struct value *  arg1,
struct value *  arg2 
)

Definition at line 255 of file valarith.c.

int unop_user_defined_p ( enum exp_opcode  op,
struct value *  arg1 
)

Definition at line 268 of file valarith.c.

struct value* value_binop ( struct value *  arg1,
struct value *  arg2,
enum exp_opcode  op 
) [read]

Definition at line 1445 of file valarith.c.

int value_bit_index ( struct type type,
const gdb_byte valaddr,
int  index 
)

Definition at line 1830 of file valarith.c.

struct value* value_complement ( struct value *  arg1) [read]

Definition at line 1791 of file valarith.c.

struct value* value_concat ( struct value *  arg1,
struct value *  arg2 
) [read]

Definition at line 626 of file valarith.c.

int value_equal ( struct value *  arg1,
struct value *  arg2 
)

Definition at line 1543 of file valarith.c.

int value_equal_contents ( struct value *  arg1,
struct value *  arg2 
)

Definition at line 1625 of file valarith.c.

int value_in ( struct value *  element,
struct value *  set 
)

Definition at line 1852 of file valarith.c.

int value_less ( struct value *  arg1,
struct value *  arg2 
)

Definition at line 1642 of file valarith.c.

int value_logical_not ( struct value *  arg1)

Definition at line 1482 of file valarith.c.

struct value* value_neg ( struct value *  arg1) [read]

Definition at line 1736 of file valarith.c.

struct value* value_pos ( struct value *  arg1) [read]

Definition at line 1705 of file valarith.c.

struct value* value_ptradd ( struct value *  arg1,
LONGEST  arg2 
) [read]

Definition at line 86 of file valarith.c.

LONGEST value_ptrdiff ( struct value *  arg1,
struct value *  arg2 
)

Definition at line 107 of file valarith.c.

struct value* value_subscript ( struct value *  array,
LONGEST  index 
) [read]

Definition at line 148 of file valarith.c.

struct value* value_subscripted_rvalue ( struct value *  array,
LONGEST  index,
int  lowerbound 
) [read]

Definition at line 193 of file valarith.c.

struct value* value_vector_widen ( struct value *  scalar_value,
struct type vector_type 
) [read]

Definition at line 1355 of file valarith.c.

struct value* value_x_binop ( struct value *  arg1,
struct value *  arg2,
enum exp_opcode  op,
enum exp_opcode  otherop,
enum noside noside   
) [read]

Definition at line 344 of file valarith.c.

struct value* value_x_unop ( struct value *  arg1,
enum exp_opcode  op,
enum noside noside   
) [read]

Definition at line 509 of file valarith.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines