Stackdb
Stackdb is a stackable, multi-target and -level source debugger and memory forensics library.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
scope.c File Reference
#include <stdlib.h>
#include <errno.h>
#include <glib.h>
#include "config.h"
#include "common.h"
#include "log.h"
#include "list.h"
#include "alist.h"
#include "dwdebug_priv.h"
#include "dwdebug.h"
#include "glib_wrapper.h"
Include dependency graph for scope.c:

Go to the source code of this file.

Functions

struct scopescope_create (struct symbol *symbol, SMOFFSET ref)
 
char * scope_get_name (struct scope *scope)
 
int scope_insert_symbol (struct scope *scope, struct symbol *symbol)
 
int scope_hold_symbol (struct scope *scope, struct symbol *symbol)
 
int scope_insert_scope (struct scope *parent, struct scope *child)
 
int scope_remove_scope (struct scope *parent, struct scope *child)
 
int scope_remove_symbol (struct scope *scope, struct symbol *symbol)
 
void scope_update_range (struct scope *scope, ADDR start, ADDR end, int *action)
 
int scope_get_sizes (struct scope *scope, int *named, int *duplicated, int *anon, int *numscopes)
 
int scope_get_overall_range (struct scope *scope, ADDR *low_addr_saveptr, ADDR *high_addr_saveptr, int *is_noncontiguous)
 
REFCNT scope_free (struct scope *scope, int force)
 
void scope_dump (struct scope *scope, struct dump_info *ud)
 
int scope_contains_addr (struct scope *scope, ADDR addr)
 
struct scopescope_lookup_addr (struct scope *scope, ADDR addr)
 
struct lsymbolscope_lookup_sym__int (struct scope *scope, const char *name, const char *delim, symbol_type_flag_t flags)
 
struct lsymbolscope_lookup_sym (struct scope *scope, const char *name, const char *delim, symbol_type_flag_t flags)
 
struct symbolscope_get_sym (struct scope *scope, const char *name, symbol_type_flag_t flags)
 
GSList * scope_match_syms (struct scope *scope, struct rfilter *symbol_filter, symbol_type_flag_t flags)
 

Function Documentation

int scope_contains_addr ( struct scope scope,
ADDR  addr 
)

Definition at line 504 of file scope.c.

struct scope* scope_create ( struct symbol symbol,
SMOFFSET  ref 
)

Scopes.

Definition at line 37 of file scope.c.

void scope_dump ( struct scope scope,
struct dump_info ud 
)

Definition at line 409 of file scope.c.

REFCNT scope_free ( struct scope scope,
int  force 
)

Definition at line 352 of file scope.c.

char* scope_get_name ( struct scope scope)

Definition at line 50 of file scope.c.

int scope_get_overall_range ( struct scope scope,
ADDR low_addr_saveptr,
ADDR high_addr_saveptr,
int *  is_noncontiguous 
)

Definition at line 290 of file scope.c.

int scope_get_sizes ( struct scope scope,
int *  named,
int *  duplicated,
int *  anon,
int *  numscopes 
)

Definition at line 263 of file scope.c.

struct symbol* scope_get_sym ( struct scope scope,
const char *  name,
symbol_type_flag_t  flags 
)

Definition at line 771 of file scope.c.

int scope_hold_symbol ( struct scope scope,
struct symbol symbol 
)

Definition at line 73 of file scope.c.

int scope_insert_scope ( struct scope parent,
struct scope child 
)

Definition at line 88 of file scope.c.

int scope_insert_symbol ( struct scope scope,
struct symbol symbol 
)

Definition at line 57 of file scope.c.

struct scope* scope_lookup_addr ( struct scope scope,
ADDR  pc 
)

Scope (PC) lookup functions.

Definition at line 528 of file scope.c.

struct lsymbol* scope_lookup_sym ( struct scope scope,
const char *  name,
const char *  delim,
symbol_type_flag_t  flags 
)

Definition at line 758 of file scope.c.

struct lsymbol* scope_lookup_sym__int ( struct scope scope,
const char *  name,
const char *  delim,
symbol_type_flag_t  flags 
)

Definition at line 573 of file scope.c.

GSList* scope_match_syms ( struct scope scope,
struct rfilter symbol_filter,
symbol_type_flag_t  flags 
)

Definition at line 811 of file scope.c.

int scope_remove_scope ( struct scope parent,
struct scope child 
)

Definition at line 110 of file scope.c.

int scope_remove_symbol ( struct scope scope,
struct symbol symbol 
)

Definition at line 132 of file scope.c.

void scope_update_range ( struct scope scope,
ADDR  start,
ADDR  end,
int *  action 
)

Definition at line 166 of file scope.c.