GDB (API)
Functions | Variables
/home/stan/gdb/src/gdb/dwarf2expr.c File Reference
#include "defs.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "value.h"
#include "gdbcore.h"
#include "dwarf2.h"
#include "dwarf2expr.h"
#include "gdb_assert.h"

Go to the source code of this file.

Functions

struct dwarf_expr_contextnew_dwarf_expr_context (void)
void free_dwarf_expr_context (struct dwarf_expr_context *ctx)
struct cleanup * make_cleanup_free_dwarf_expr_context (struct dwarf_expr_context *ctx)
void dwarf_expr_push_address (struct dwarf_expr_context *ctx, CORE_ADDR value, int in_stack_memory)
struct value * dwarf_expr_fetch (struct dwarf_expr_context *ctx, int n)
CORE_ADDR dwarf_expr_fetch_address (struct dwarf_expr_context *ctx, int n)
int dwarf_expr_fetch_in_stack_memory (struct dwarf_expr_context *ctx, int n)
void dwarf_expr_eval (struct dwarf_expr_context *ctx, const gdb_byte *addr, size_t len)
const gdb_bytesafe_read_uleb128 (const gdb_byte *buf, const gdb_byte *buf_end, uint64_t *r)
const gdb_bytesafe_read_sleb128 (const gdb_byte *buf, const gdb_byte *buf_end, int64_t *r)
const gdb_bytesafe_skip_leb128 (const gdb_byte *buf, const gdb_byte *buf_end)
void dwarf_expr_require_composition (const gdb_byte *op_ptr, const gdb_byte *op_end, const char *op_name)
int dwarf_block_to_dwarf_reg (const gdb_byte *buf, const gdb_byte *buf_end)
int dwarf_block_to_dwarf_reg_deref (const gdb_byte *buf, const gdb_byte *buf_end, CORE_ADDR *deref_size_return)
int dwarf_block_to_fb_offset (const gdb_byte *buf, const gdb_byte *buf_end, CORE_ADDR *fb_offset_return)
int dwarf_block_to_sp_offset (struct gdbarch *gdbarch, const gdb_byte *buf, const gdb_byte *buf_end, CORE_ADDR *sp_offset_return)
void ctx_no_get_frame_base (void *baton, const gdb_byte **start, size_t *length)
CORE_ADDR ctx_no_get_frame_cfa (void *baton)
CORE_ADDR ctx_no_get_frame_pc (void *baton)
CORE_ADDR ctx_no_get_tls_address (void *baton, CORE_ADDR offset)
void ctx_no_dwarf_call (struct dwarf_expr_context *ctx, cu_offset die_offset)
struct typectx_no_get_base_type (struct dwarf_expr_context *ctx, cu_offset die)
void ctx_no_push_dwarf_reg_entry_value (struct dwarf_expr_context *ctx, enum call_site_parameter_kind kind, union call_site_parameter_u kind_u, int deref_size)
CORE_ADDR ctx_no_get_addr_index (void *baton, unsigned int index)
void _initialize_dwarf2expr (void)

Variables

initialize_file_ftype _initialize_dwarf2expr

Function Documentation

void _initialize_dwarf2expr ( void  )

Definition at line 1577 of file dwarf2expr.c.

void ctx_no_dwarf_call ( struct dwarf_expr_context ctx,
cu_offset  die_offset 
)

Definition at line 1539 of file dwarf2expr.c.

CORE_ADDR ctx_no_get_addr_index ( void *  baton,
unsigned int  index 
)

Definition at line 1568 of file dwarf2expr.c.

struct type* ctx_no_get_base_type ( struct dwarf_expr_context ctx,
cu_offset  die 
) [read]

Definition at line 1547 of file dwarf2expr.c.

void ctx_no_get_frame_base ( void *  baton,
const gdb_byte **  start,
size_t *  length 
)

Definition at line 1507 of file dwarf2expr.c.

CORE_ADDR ctx_no_get_frame_cfa ( void *  baton)

Definition at line 1515 of file dwarf2expr.c.

CORE_ADDR ctx_no_get_frame_pc ( void *  baton)

Definition at line 1523 of file dwarf2expr.c.

CORE_ADDR ctx_no_get_tls_address ( void *  baton,
CORE_ADDR  offset 
)

Definition at line 1531 of file dwarf2expr.c.

void ctx_no_push_dwarf_reg_entry_value ( struct dwarf_expr_context ctx,
enum call_site_parameter_kind  kind,
union call_site_parameter_u  kind_u,
int  deref_size 
)

Definition at line 1556 of file dwarf2expr.c.

Definition at line 465 of file dwarf2expr.c.

int dwarf_block_to_dwarf_reg_deref ( const gdb_byte buf,
const gdb_byte buf_end,
CORE_ADDR deref_size_return 
)

Definition at line 508 of file dwarf2expr.c.

int dwarf_block_to_fb_offset ( const gdb_byte buf,
const gdb_byte buf_end,
CORE_ADDR fb_offset_return 
)

Definition at line 567 of file dwarf2expr.c.

int dwarf_block_to_sp_offset ( struct gdbarch *  gdbarch,
const gdb_byte buf,
const gdb_byte buf_end,
CORE_ADDR sp_offset_return 
)

Definition at line 594 of file dwarf2expr.c.

void dwarf_expr_eval ( struct dwarf_expr_context ctx,
const gdb_byte addr,
size_t  len 
)

Definition at line 359 of file dwarf2expr.c.

struct value* dwarf_expr_fetch ( struct dwarf_expr_context ctx,
int  n 
) [read]

Definition at line 189 of file dwarf2expr.c.

Definition at line 256 of file dwarf2expr.c.

Definition at line 289 of file dwarf2expr.c.

void dwarf_expr_push_address ( struct dwarf_expr_context ctx,
CORE_ADDR  value,
int  in_stack_memory 
)

Definition at line 168 of file dwarf2expr.c.

void dwarf_expr_require_composition ( const gdb_byte op_ptr,
const gdb_byte op_end,
const char *  op_name 
)

Definition at line 409 of file dwarf2expr.c.

Definition at line 112 of file dwarf2expr.c.

struct cleanup* make_cleanup_free_dwarf_expr_context ( struct dwarf_expr_context ctx) [read]

Definition at line 130 of file dwarf2expr.c.

struct dwarf_expr_context* new_dwarf_expr_context ( void  ) [read]

Definition at line 94 of file dwarf2expr.c.

const gdb_byte* safe_read_sleb128 ( const gdb_byte buf,
const gdb_byte buf_end,
int64_t *  r 
)

Definition at line 386 of file dwarf2expr.c.

const gdb_byte* safe_read_uleb128 ( const gdb_byte buf,
const gdb_byte buf_end,
uint64_t *  r 
)

Definition at line 374 of file dwarf2expr.c.

Definition at line 396 of file dwarf2expr.c.


Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines