|
GDB (API)
|
#include "defs.h"#include "arch-utils.h"#include "gdb_string.h"#include "symtab.h"#include "gdbtypes.h"#include "value.h"#include "gdbcore.h"#include "command.h"#include "gdbcmd.h"#include "target.h"#include "language.h"#include "demangle.h"#include "doublest.h"#include "gdb_assert.h"#include "regcache.h"#include "block.h"#include "dfp.h"#include "objfiles.h"#include "valprint.h"#include "cli/cli-decode.h"#include "exceptions.h"#include "python/python.h"#include <ctype.h>#include "tracepoint.h"#include "cp-abi.h"#include "user-regs.h"Go to the source code of this file.
Defines | |
| #define | VALUE_HISTORY_CHUNK 60 |
Typedefs | |
| typedef struct range | range_s |
Functions | |
| void | _initialize_values (void) |
| DEF_VEC_O (range_s) | |
| int | value_bytes_available (const struct value *value, int offset, int length) |
| int | value_entirely_available (struct value *value) |
| int | value_entirely_unavailable (struct value *value) |
| void | mark_value_bytes_unavailable (struct value *value, int offset, int length) |
| int | value_available_contents_eq (const struct value *val1, int offset1, const struct value *val2, int offset2, int length) |
| struct value * | allocate_value_lazy (struct type *type) |
| struct value * | allocate_value (struct type *type) |
| struct value * | allocate_repeat_value (struct type *type, int count) |
| struct value * | allocate_computed_value (struct type *type, const struct lval_funcs *funcs, void *closure) |
| struct value * | allocate_optimized_out_value (struct type *type) |
| struct value * | value_next (struct value *value) |
| struct type * | value_type (const struct value *value) |
| void | deprecated_set_value_type (struct value *value, struct type *type) |
| int | value_offset (const struct value *value) |
| void | set_value_offset (struct value *value, int offset) |
| int | value_bitpos (const struct value *value) |
| void | set_value_bitpos (struct value *value, int bit) |
| int | value_bitsize (const struct value *value) |
| void | set_value_bitsize (struct value *value, int bit) |
| struct value * | value_parent (struct value *value) |
| void | set_value_parent (struct value *value, struct value *parent) |
| gdb_byte * | value_contents_raw (struct value *value) |
| gdb_byte * | value_contents_all_raw (struct value *value) |
| struct type * | value_enclosing_type (struct value *value) |
| struct type * | value_actual_type (struct value *value, int resolve_simple_types, int *real_type_found) |
| void | error_value_optimized_out (void) |
| const gdb_byte * | value_contents_for_printing (struct value *value) |
| const gdb_byte * | value_contents_for_printing_const (const struct value *value) |
| const gdb_byte * | value_contents_all (struct value *value) |
| void | value_contents_copy_raw (struct value *dst, int dst_offset, struct value *src, int src_offset, int length) |
| void | value_contents_copy (struct value *dst, int dst_offset, struct value *src, int src_offset, int length) |
| int | value_lazy (struct value *value) |
| void | set_value_lazy (struct value *value, int val) |
| int | value_stack (struct value *value) |
| void | set_value_stack (struct value *value, int val) |
| const gdb_byte * | value_contents (struct value *value) |
| gdb_byte * | value_contents_writeable (struct value *value) |
| int | value_contents_equal (struct value *val1, struct value *val2) |
| int | value_optimized_out (struct value *value) |
| int | value_optimized_out_const (const struct value *value) |
| void | set_value_optimized_out (struct value *value, int val) |
| int | value_entirely_optimized_out (const struct value *value) |
| int | value_bits_valid (const struct value *value, int offset, int length) |
| int | value_bits_synthetic_pointer (const struct value *value, int offset, int length) |
| int | value_embedded_offset (struct value *value) |
| void | set_value_embedded_offset (struct value *value, int val) |
| int | value_pointed_to_offset (struct value *value) |
| void | set_value_pointed_to_offset (struct value *value, int val) |
| struct lval_funcs * | value_computed_funcs (const struct value *v) |
| void * | value_computed_closure (const struct value *v) |
| enum lval_type * | deprecated_value_lval_hack (struct value *value) |
| enum lval_type | value_lval_const (const struct value *value) |
| CORE_ADDR | value_address (const struct value *value) |
| CORE_ADDR | value_raw_address (struct value *value) |
| void | set_value_address (struct value *value, CORE_ADDR addr) |
| struct internalvar ** | deprecated_value_internalvar_hack (struct value *value) |
| struct frame_id * | deprecated_value_frame_id_hack (struct value *value) |
| short * | deprecated_value_regnum_hack (struct value *value) |
| int | deprecated_value_modifiable (struct value *value) |
| struct value * | value_mark (void) |
| void | value_incref (struct value *val) |
| void | value_free (struct value *val) |
| void | value_free_to_mark (struct value *mark) |
| void | free_all_values (void) |
| void | free_value_chain (struct value *v) |
| void | release_value (struct value *val) |
| void | release_value_or_incref (struct value *val) |
| struct value * | value_release_to_mark (struct value *mark) |
| struct value * | value_copy (struct value *arg) |
| struct value * | value_non_lval (struct value *arg) |
| void | set_value_component_location (struct value *component, const struct value *whole) |
| int | record_latest_value (struct value *val) |
| struct value * | access_value_history (int num) |
| struct internalvar * | lookup_only_internalvar (const char *name) |
| VEC (char_ptr) | |
| struct internalvar * | create_internalvar (const char *name) |
| struct internalvar * | create_internalvar_type_lazy (const char *name, const struct internalvar_funcs *funcs, void *data) |
| int | compile_internalvar_to_ax (struct internalvar *var, struct agent_expr *expr, struct axs_value *value) |
| struct internalvar * | lookup_internalvar (const char *name) |
| struct value * | value_of_internalvar (struct gdbarch *gdbarch, struct internalvar *var) |
| int | get_internalvar_integer (struct internalvar *var, LONGEST *result) |
| void | set_internalvar_component (struct internalvar *var, int offset, int bitpos, int bitsize, struct value *newval) |
| void | set_internalvar (struct internalvar *var, struct value *val) |
| void | set_internalvar_integer (struct internalvar *var, LONGEST l) |
| void | set_internalvar_string (struct internalvar *var, const char *string) |
| void | clear_internalvar (struct internalvar *var) |
| char * | internalvar_name (struct internalvar *var) |
| char * | value_internal_function_name (struct value *val) |
| struct value * | call_internal_function (struct gdbarch *gdbarch, const struct language_defn *language, struct value *func, int argc, struct value **argv) |
| void | add_internal_function (const char *name, const char *doc, internal_function_fn handler, void *cookie) |
| void | preserve_one_value (struct value *value, struct objfile *objfile, htab_t copied_types) |
| void | preserve_values (struct objfile *objfile) |
| LONGEST | value_as_long (struct value *val) |
| DOUBLEST | value_as_double (struct value *val) |
| CORE_ADDR | value_as_address (struct value *val) |
| LONGEST | unpack_long (struct type *type, const gdb_byte *valaddr) |
| DOUBLEST | unpack_double (struct type *type, const gdb_byte *valaddr, int *invp) |
| CORE_ADDR | unpack_pointer (struct type *type, const gdb_byte *valaddr) |
| struct value * | value_static_field (struct type *type, int fieldno) |
| void | set_value_enclosing_type (struct value *val, struct type *new_encl_type) |
| struct value * | value_primitive_field (struct value *arg1, int offset, int fieldno, struct type *arg_type) |
| struct value * | value_field (struct value *arg1, int fieldno) |
| struct value * | value_fn_field (struct value **arg1p, struct fn_field *f, int j, struct type *type, int offset) |
| int | unpack_value_bits_as_long (struct type *field_type, const gdb_byte *valaddr, int embedded_offset, int bitpos, int bitsize, const struct value *original_value, LONGEST *result) |
| int | unpack_value_field_as_long (struct type *type, const gdb_byte *valaddr, int embedded_offset, int fieldno, const struct value *val, LONGEST *result) |
| LONGEST | unpack_field_as_long (struct type *type, const gdb_byte *valaddr, int fieldno) |
| struct value * | value_field_bitfield (struct type *type, int fieldno, const gdb_byte *valaddr, int embedded_offset, const struct value *val) |
| void | modify_field (struct type *type, gdb_byte *addr, LONGEST fieldval, int bitpos, int bitsize) |
| void | pack_long (gdb_byte *buf, struct type *type, LONGEST num) |
| struct value * | value_from_longest (struct type *type, LONGEST num) |
| struct value * | value_from_ulongest (struct type *type, ULONGEST num) |
| struct value * | value_from_pointer (struct type *type, CORE_ADDR addr) |
| struct value * | value_from_contents_and_address (struct type *type, const gdb_byte *valaddr, CORE_ADDR address) |
| struct value * | value_from_contents (struct type *type, const gdb_byte *contents) |
| struct value * | value_from_double (struct type *type, DOUBLEST num) |
| struct value * | value_from_decfloat (struct type *type, const gdb_byte *dec) |
| struct value * | value_from_history_ref (char *h, char **endp) |
| struct value * | coerce_ref_if_computed (const struct value *arg) |
| struct value * | readjust_indirect_value_type (struct value *value, struct type *enc_type, struct type *original_type, struct value *original_value) |
| struct value * | coerce_ref (struct value *arg) |
| struct value * | coerce_array (struct value *arg) |
| enum return_value_convention | struct_return_convention (struct gdbarch *gdbarch, struct value *function, struct type *value_type) |
| int | using_struct_return (struct gdbarch *gdbarch, struct value *function, struct type *value_type) |
| void | set_value_initialized (struct value *val, int status) |
| int | value_initialized (struct value *val) |
| int | value_fetch_lazy (struct value *val) |
| #define VALUE_HISTORY_CHUNK 60 |
| void _initialize_values | ( | void | ) |
| struct value* access_value_history | ( | int | num | ) | [read] |
| void add_internal_function | ( | const char * | name, |
| const char * | doc, | ||
| internal_function_fn | handler, | ||
| void * | cookie | ||
| ) |
| struct value* allocate_computed_value | ( | struct type * | type, |
| const struct lval_funcs * | funcs, | ||
| void * | closure | ||
| ) | [read] |
| struct value* allocate_optimized_out_value | ( | struct type * | type | ) | [read] |
| struct value* allocate_repeat_value | ( | struct type * | type, |
| int | count | ||
| ) | [read] |
| struct value* allocate_value | ( | struct type * | type | ) | [read] |
| struct value* allocate_value_lazy | ( | struct type * | type | ) | [read] |
| struct value* call_internal_function | ( | struct gdbarch * | gdbarch, |
| const struct language_defn * | language, | ||
| struct value * | func, | ||
| int | argc, | ||
| struct value ** | argv | ||
| ) | [read] |
| void clear_internalvar | ( | struct internalvar * | var | ) |
| struct value* coerce_array | ( | struct value * | arg | ) | [read] |
| struct value* coerce_ref | ( | struct value * | arg | ) | [read] |
| struct value* coerce_ref_if_computed | ( | const struct value * | arg | ) | [read] |
| int compile_internalvar_to_ax | ( | struct internalvar * | var, |
| struct agent_expr * | expr, | ||
| struct axs_value * | value | ||
| ) |
| struct internalvar* create_internalvar | ( | const char * | name | ) | [read] |
| struct internalvar* create_internalvar_type_lazy | ( | const char * | name, |
| const struct internalvar_funcs * | funcs, | ||
| void * | data | ||
| ) | [read] |
| void deprecated_set_value_type | ( | struct value * | value, |
| struct type * | type | ||
| ) |
| struct frame_id* deprecated_value_frame_id_hack | ( | struct value * | value | ) | [read] |
| struct internalvar** deprecated_value_internalvar_hack | ( | struct value * | value | ) | [read] |
| enum lval_type* deprecated_value_lval_hack | ( | struct value * | value | ) |
| int deprecated_value_modifiable | ( | struct value * | value | ) |
| short* deprecated_value_regnum_hack | ( | struct value * | value | ) |
| void error_value_optimized_out | ( | void | ) |
| void free_all_values | ( | void | ) |
| void free_value_chain | ( | struct value * | v | ) |
| int get_internalvar_integer | ( | struct internalvar * | var, |
| LONGEST * | result | ||
| ) |
| char* internalvar_name | ( | struct internalvar * | var | ) |
| struct internalvar* lookup_internalvar | ( | const char * | name | ) | [read] |
| struct internalvar* lookup_only_internalvar | ( | const char * | name | ) | [read] |
| void mark_value_bytes_unavailable | ( | struct value * | value, |
| int | offset, | ||
| int | length | ||
| ) |
| void preserve_one_value | ( | struct value * | value, |
| struct objfile * | objfile, | ||
| htab_t | copied_types | ||
| ) |
| void preserve_values | ( | struct objfile * | objfile | ) |
| struct value* readjust_indirect_value_type | ( | struct value * | value, |
| struct type * | enc_type, | ||
| struct type * | original_type, | ||
| struct value * | original_value | ||
| ) | [read] |
| int record_latest_value | ( | struct value * | val | ) |
| void release_value | ( | struct value * | val | ) |
| void release_value_or_incref | ( | struct value * | val | ) |
| void set_internalvar | ( | struct internalvar * | var, |
| struct value * | val | ||
| ) |
| void set_internalvar_component | ( | struct internalvar * | var, |
| int | offset, | ||
| int | bitpos, | ||
| int | bitsize, | ||
| struct value * | newval | ||
| ) |
| void set_internalvar_integer | ( | struct internalvar * | var, |
| LONGEST | l | ||
| ) |
| void set_internalvar_string | ( | struct internalvar * | var, |
| const char * | string | ||
| ) |
| void set_value_address | ( | struct value * | value, |
| CORE_ADDR | addr | ||
| ) |
| void set_value_bitpos | ( | struct value * | value, |
| int | bit | ||
| ) |
| void set_value_bitsize | ( | struct value * | value, |
| int | bit | ||
| ) |
| void set_value_component_location | ( | struct value * | component, |
| const struct value * | whole | ||
| ) |
| void set_value_embedded_offset | ( | struct value * | value, |
| int | val | ||
| ) |
| void set_value_enclosing_type | ( | struct value * | val, |
| struct type * | new_encl_type | ||
| ) |
| void set_value_initialized | ( | struct value * | val, |
| int | status | ||
| ) |
| void set_value_lazy | ( | struct value * | value, |
| int | val | ||
| ) |
| void set_value_offset | ( | struct value * | value, |
| int | offset | ||
| ) |
| void set_value_optimized_out | ( | struct value * | value, |
| int | val | ||
| ) |
| void set_value_parent | ( | struct value * | value, |
| struct value * | parent | ||
| ) |
| void set_value_pointed_to_offset | ( | struct value * | value, |
| int | val | ||
| ) |
| void set_value_stack | ( | struct value * | value, |
| int | val | ||
| ) |
| enum return_value_convention struct_return_convention | ( | struct gdbarch * | gdbarch, |
| struct value * | function, | ||
| struct type * | value_type | ||
| ) |
| LONGEST unpack_long | ( | struct type * | type, |
| const gdb_byte * | valaddr | ||
| ) |
| CORE_ADDR unpack_pointer | ( | struct type * | type, |
| const gdb_byte * | valaddr | ||
| ) |
| int using_struct_return | ( | struct gdbarch * | gdbarch, |
| struct value * | function, | ||
| struct type * | value_type | ||
| ) |
| struct type* value_actual_type | ( | struct value * | value, |
| int | resolve_simple_types, | ||
| int * | real_type_found | ||
| ) | [read] |
| CORE_ADDR value_address | ( | const struct value * | value | ) |
| CORE_ADDR value_as_address | ( | struct value * | val | ) |
| DOUBLEST value_as_double | ( | struct value * | val | ) |
| LONGEST value_as_long | ( | struct value * | val | ) |
| int value_bitpos | ( | const struct value * | value | ) |
| int value_bits_synthetic_pointer | ( | const struct value * | value, |
| int | offset, | ||
| int | length | ||
| ) |
| int value_bits_valid | ( | const struct value * | value, |
| int | offset, | ||
| int | length | ||
| ) |
| int value_bitsize | ( | const struct value * | value | ) |
| int value_bytes_available | ( | const struct value * | value, |
| int | offset, | ||
| int | length | ||
| ) |
| void* value_computed_closure | ( | const struct value * | v | ) |
| struct lval_funcs* value_computed_funcs | ( | const struct value * | v | ) | [read] |
| const gdb_byte* value_contents | ( | struct value * | value | ) |
| const gdb_byte* value_contents_all | ( | struct value * | value | ) |
| gdb_byte* value_contents_all_raw | ( | struct value * | value | ) |
| void value_contents_copy | ( | struct value * | dst, |
| int | dst_offset, | ||
| struct value * | src, | ||
| int | src_offset, | ||
| int | length | ||
| ) |
| void value_contents_copy_raw | ( | struct value * | dst, |
| int | dst_offset, | ||
| struct value * | src, | ||
| int | src_offset, | ||
| int | length | ||
| ) |
| int value_contents_equal | ( | struct value * | val1, |
| struct value * | val2 | ||
| ) |
| const gdb_byte* value_contents_for_printing | ( | struct value * | value | ) |
| const gdb_byte* value_contents_for_printing_const | ( | const struct value * | value | ) |
| gdb_byte* value_contents_raw | ( | struct value * | value | ) |
| gdb_byte* value_contents_writeable | ( | struct value * | value | ) |
| struct value* value_copy | ( | struct value * | arg | ) | [read] |
| int value_embedded_offset | ( | struct value * | value | ) |
| struct type* value_enclosing_type | ( | struct value * | value | ) | [read] |
| int value_entirely_available | ( | struct value * | value | ) |
| int value_entirely_optimized_out | ( | const struct value * | value | ) |
| int value_entirely_unavailable | ( | struct value * | value | ) |
| int value_fetch_lazy | ( | struct value * | val | ) |
| struct value* value_field | ( | struct value * | arg1, |
| int | fieldno | ||
| ) | [read] |
| struct value* value_fn_field | ( | struct value ** | arg1p, |
| struct fn_field * | f, | ||
| int | j, | ||
| struct type * | type, | ||
| int | offset | ||
| ) | [read] |
| void value_free | ( | struct value * | val | ) |
| void value_free_to_mark | ( | struct value * | mark | ) |
| struct value* value_from_contents | ( | struct type * | type, |
| const gdb_byte * | contents | ||
| ) | [read] |
| struct value* value_from_contents_and_address | ( | struct type * | type, |
| const gdb_byte * | valaddr, | ||
| CORE_ADDR | address | ||
| ) | [read] |
| struct value* value_from_decfloat | ( | struct type * | type, |
| const gdb_byte * | dec | ||
| ) | [read] |
| struct value* value_from_double | ( | struct type * | type, |
| DOUBLEST | num | ||
| ) | [read] |
| struct value* value_from_history_ref | ( | char * | h, |
| char ** | endp | ||
| ) | [read] |
| struct value* value_from_longest | ( | struct type * | type, |
| LONGEST | num | ||
| ) | [read] |
| struct value* value_from_pointer | ( | struct type * | type, |
| CORE_ADDR | addr | ||
| ) | [read] |
| struct value* value_from_ulongest | ( | struct type * | type, |
| ULONGEST | num | ||
| ) | [read] |
| void value_incref | ( | struct value * | val | ) |
| int value_initialized | ( | struct value * | val | ) |
| char* value_internal_function_name | ( | struct value * | val | ) |
| int value_lazy | ( | struct value * | value | ) |
| enum lval_type value_lval_const | ( | const struct value * | value | ) |
| struct value* value_mark | ( | void | ) | [read] |
| struct value* value_next | ( | struct value * | value | ) | [read] |
| struct value* value_non_lval | ( | struct value * | arg | ) | [read] |
| struct value* value_of_internalvar | ( | struct gdbarch * | gdbarch, |
| struct internalvar * | var | ||
| ) | [read] |
| int value_offset | ( | const struct value * | value | ) |
| int value_optimized_out | ( | struct value * | value | ) |
| int value_optimized_out_const | ( | const struct value * | value | ) |
| struct value* value_parent | ( | struct value * | value | ) | [read] |
| int value_pointed_to_offset | ( | struct value * | value | ) |
| struct value* value_primitive_field | ( | struct value * | arg1, |
| int | offset, | ||
| int | fieldno, | ||
| struct type * | arg_type | ||
| ) | [read] |
| CORE_ADDR value_raw_address | ( | struct value * | value | ) |
| struct value* value_release_to_mark | ( | struct value * | mark | ) | [read] |
| int value_stack | ( | struct value * | value | ) |
| struct value* value_static_field | ( | struct type * | type, |
| int | fieldno | ||
| ) | [read] |
| struct type* value_type | ( | const struct value * | value | ) | [read] |
1.7.6.1