GDB (xrefs)
Loading...
Searching...
No Matches
minidebug.c File Reference
#include "defs.h"
#include "gdb_bfd.h"
#include "symfile.h"
#include "objfiles.h"
#include "gdbcore.h"
#include <algorithm>
#include <lzma.h>

Go to the source code of this file.

Classes

struct  gdb_lzma_stream
 

Functions

static void * alloc_lzma (void *opaque, size_t nmemb, size_t size)
 
static void free_lzma (void *opaque, void *ptr)
 
static gdb_lzma_streamlzma_open (struct bfd *nbfd, asection *section)
 
gdb_bfd_ref_ptr find_separate_debug_file_in_section (struct objfile *objfile)
 

Variables

static const registry< bfd >::key< gdb_bfd_ref_ptrgnu_debug_key
 
static lzma_allocator gdb_lzma_allocator = { alloc_lzma, free_lzma, NULL }
 

Function Documentation

◆ alloc_lzma()

static void * alloc_lzma ( void * opaque,
size_t nmemb,
size_t size )
static

Definition at line 38 of file minidebug.c.

References size, and xmalloc().

◆ find_separate_debug_file_in_section()

gdb_bfd_ref_ptr find_separate_debug_file_in_section ( struct objfile * objfile)

◆ free_lzma()

static void free_lzma ( void * opaque,
void * ptr )
static

Definition at line 46 of file minidebug.c.

References xfree().

◆ lzma_open()

static gdb_lzma_stream * lzma_open ( struct bfd * nbfd,
asection * section )
static

Variable Documentation

◆ gdb_lzma_allocator

lzma_allocator gdb_lzma_allocator = { alloc_lzma, free_lzma, NULL }
static

Definition at line 54 of file minidebug.c.

Referenced by lzma_open(), gdb_lzma_stream::read(), and gdb_lzma_stream::~gdb_lzma_stream().

◆ gnu_debug_key

const registry<bfd>::key<gdb_bfd_ref_ptr> gnu_debug_key
static

Definition at line 31 of file minidebug.c.

Referenced by find_separate_debug_file_in_section().