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
Macros | Variables
binfile_elf.c File Reference
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <stdint.h>
#include <inttypes.h>
#include <assert.h>
#include <regex.h>
#include <glib.h>
#include "config.h"
#include "common.h"
#include "arch.h"
#include "log.h"
#include "output.h"
#include "list.h"
#include "glib_wrapper.h"
#include "clfit.h"
#include "alist.h"
#include "binfile.h"
#include "dwdebug.h"
#include "dwdebug_priv.h"
#include <dwarf.h>
#include <gelf.h>
#include <elfutils/libebl.h>
#include <elfutils/libdw.h>
#include <elfutils/libdwfl.h>
#include "memory-access.h"
Include dependency graph for binfile_elf.c:

Go to the source code of this file.

Macros

#define ARCH_SHF_X86   0
 
#define __ALIGN(x, a)   (((x) + (typeof(x))(a) - 1) & ~((typeof(x))(a) - 1))
 
#define __PAGE_SIZE   0x1000
 
#define __DEBUG_ALIGN   (x) __ALIGN((x),__PAGE_SIZE)
 

Variables

struct binfile_ops elf_binfile_ops
 

Macro Definition Documentation

#define __ALIGN (   x,
 
)    (((x) + (typeof(x))(a) - 1) & ~((typeof(x))(a) - 1))
#define __DEBUG_ALIGN   (x) __ALIGN((x),__PAGE_SIZE)
#define __PAGE_SIZE   0x1000
#define ARCH_SHF_X86   0

Variable Documentation

struct binfile_ops elf_binfile_ops
Initial value:
= {
.get_backend_name = elf_binfile_get_backend_name,
.open = elf_binfile_open,
.open_debuginfo = elf_binfile_open_debuginfo,
.infer_instance = elf_binfile_infer_instance,
.close = elf_binfile_close,
.free = elf_binfile_free,
.free_instance = elf_binfile_free_instance,
}

Definition at line 67 of file binfile_elf.c.