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
Data Structures | Enumerations | Functions
binfile.h File Reference
#include "arch.h"
#include "dwdebug_priv.h"
#include "dwdebug.h"
Include dependency graph for binfile.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  binfile_ops
 
struct  binfile
 
struct  binfile_elf
 
struct  binfile_instance
 
struct  binfile_instance_elf
 

Enumerations

enum  binfile_type_t {
  BINFILE_TYPE_NONE = 0, BINFILE_TYPE_REL = 1, BINFILE_TYPE_EXEC = 2, BINFILE_TYPE_DYN = 3,
  BINFILE_TYPE_CORE = 4
}
 

Functions

void binfile_init (void)
 
struct binfilebinfile_create (char *filename, struct binfile_ops *bfops, void *priv)
 
int binfile_cache_clean (void)
 
struct binfilebinfile_open (char *filename, char *root_prefix, struct binfile_instance *bfinst)
 
struct binfilebinfile_open_debuginfo (struct binfile *binfile, struct binfile_instance *bfinst, const char *DFPATH[])
 
struct binfile_instancebinfile_infer_instance (char *filename, char *root_prefix, ADDR base, GHashTable *config)
 
const char * binfile_get_backend_name (struct binfile *binfile)
 
binfile_type_t binfile_get_type (struct binfile *binfile)
 
int binfile_get_root_scope_sizes (struct binfile *binfile, int *named, int *duplicated, int *anon, int *numscopes)
 
int binfile_close (struct binfile *binfile)
 
REFCNT binfile_release (struct binfile *binfile)
 
REFCNT binfile_instance_release (struct binfile_instance *bfi)
 
REFCNT binfile_instance_free (struct binfile_instance *bfi, int force)
 
struct binfilebinfile_lookup (char *filename)
 
int binfile_cache (struct binfile *binfile)
 
int binfile_uncache (struct binfile *binfile)
 
struct binfilebinfile_open__int (char *filename, char *root_prefix, struct binfile_instance *bfinst)
 
struct binfilebinfile_open_debuginfo__int (struct binfile *binfile, struct binfile_instance *bfinst, const char *DFPATH[])
 
REFCNT binfile_free (struct binfile *binfile, int force)
 

Enumeration Type Documentation

Binfiles (i.e., ELF).

Enumerator
BINFILE_TYPE_NONE 
BINFILE_TYPE_REL 
BINFILE_TYPE_EXEC 
BINFILE_TYPE_DYN 
BINFILE_TYPE_CORE 

Definition at line 31 of file binfile.h.

Function Documentation

int binfile_cache ( struct binfile binfile)

Definition at line 180 of file binfile.c.

int binfile_cache_clean ( void  )

Definition at line 197 of file binfile.c.

int binfile_close ( struct binfile binfile)

Definition at line 339 of file binfile.c.

struct binfile* binfile_create ( char *  filename,
struct binfile_ops bfops,
void *  priv 
)

Definition at line 124 of file binfile.c.

REFCNT binfile_free ( struct binfile binfile,
int  force 
)

Definition at line 358 of file binfile.c.

const char* binfile_get_backend_name ( struct binfile binfile)

Definition at line 318 of file binfile.c.

int binfile_get_root_scope_sizes ( struct binfile binfile,
int *  named,
int *  duplicated,
int *  anon,
int *  numscopes 
)

Definition at line 326 of file binfile.c.

binfile_type_t binfile_get_type ( struct binfile binfile)
struct binfile_instance* binfile_infer_instance ( char *  filename,
char *  root_prefix,
ADDR  base,
GHashTable *  config 
)

Definition at line 242 of file binfile.c.

void binfile_init ( void  )

Definition at line 103 of file binfile.c.

REFCNT binfile_instance_free ( struct binfile_instance bfi,
int  force 
)

Definition at line 437 of file binfile.c.

REFCNT binfile_instance_release ( struct binfile_instance bfi)

Definition at line 431 of file binfile.c.

struct binfile* binfile_lookup ( char *  filename)

Definition at line 162 of file binfile.c.

struct binfile* binfile_open ( char *  filename,
char *  root_prefix,
struct binfile_instance bfinst 
)

Definition at line 286 of file binfile.c.

struct binfile* binfile_open__int ( char *  filename,
char *  root_prefix,
struct binfile_instance bfinst 
)

Definition at line 254 of file binfile.c.

struct binfile* binfile_open_debuginfo ( struct binfile binfile,
struct binfile_instance bfinst,
const char *  DFPATH[] 
)

Definition at line 306 of file binfile.c.

struct binfile* binfile_open_debuginfo__int ( struct binfile binfile,
struct binfile_instance bfinst,
const char *  DFPATH[] 
)

Definition at line 297 of file binfile.c.

REFCNT binfile_release ( struct binfile binfile)

Definition at line 352 of file binfile.c.

int binfile_uncache ( struct binfile binfile)

Definition at line 189 of file binfile.c.