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
debug_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 "config.h"
#include "log.h"
#include "output.h"
#include "list.h"
#include "clfit.h"
#include "alist.h"
#include "dwdebug.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 debug_elf.c:

Go to the source code of this file.

Functions

debugfile_type_t elf_get_debugfile_type_t (Elf *elf)
 
int elf_get_base_addrs (Elf *elf, ADDR *base_virt_addr_saveptr, ADDR *base_phys_addr_saveptr)
 
int elf_get_debuginfo_info (Elf *elf, int *has_debuginfo_saveptr, char **buildid_saveptr, char **gnu_debuglinkfile_saveptr, uint32_t *gnu_debuglinkfile_crc_saveptr)
 
int elf_get_arch_info (Elf *elf, int *wordsize, int *endian)
 
int elf_is_dynamic_exe (Elf *elf)
 
int debugfile_load_elfsymtab (struct debugfile *debugfile, Elf *elf, char *elf_filename)
 

Function Documentation

int debugfile_load_elfsymtab ( struct debugfile debugfile,
Elf *  elf,
char *  elf_filename 
)

Definition at line 331 of file debug_elf.c.

int elf_get_arch_info ( Elf *  elf,
int *  wordsize,
int *  endian 
)

Definition at line 251 of file debug_elf.c.

int elf_get_base_addrs ( Elf *  elf,
ADDR base_virt_addr_saveptr,
ADDR base_phys_addr_saveptr 
)

Definition at line 67 of file debug_elf.c.

debugfile_type_t elf_get_debugfile_type_t ( Elf *  elf)

Definition at line 47 of file debug_elf.c.

int elf_get_debuginfo_info ( Elf *  elf,
int *  has_debuginfo_saveptr,
char **  buildid_saveptr,
char **  gnu_debuglinkfile_saveptr,
uint32_t *  gnu_debuglinkfile_crc_saveptr 
)

Definition at line 120 of file debug_elf.c.

int elf_is_dynamic_exe ( Elf *  elf)

Definition at line 295 of file debug_elf.c.