GDB (xrefs)
Classes | Functions | Variables
/tmp/gdb-7.10/gdb/minidebug.c File Reference
#include "defs.h"
#include "gdb_bfd.h"
#include "symfile.h"
#include "objfiles.h"
#include "gdbcore.h"
#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 void * lzma_open (struct bfd *nbfd, void *open_closure)
 
static file_ptr lzma_pread (struct bfd *nbfd, void *stream, void *buf, file_ptr nbytes, file_ptr offset)
 
static int lzma_close (struct bfd *nbfd, void *stream)
 
static int lzma_stat (struct bfd *abfd, void *stream, struct stat *sb)
 
bfd * find_separate_debug_file_in_section (struct objfile *objfile)
 

Variables

static lzma_allocator gdb_lzma_allocator = { alloc_lzma, free_lzma, NULL }
 

Function Documentation

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

Definition at line 33 of file minidebug.c.

References xmalloc().

bfd* find_separate_debug_file_in_section ( struct objfile objfile)
static void free_lzma ( void *  opaque,
void *  ptr 
)
static

Definition at line 41 of file minidebug.c.

References xfree().

static int lzma_close ( struct bfd *  nbfd,
void *  stream 
)
static
static void* lzma_open ( struct bfd *  nbfd,
void *  open_closure 
)
static
static file_ptr lzma_pread ( struct bfd *  nbfd,
void *  stream,
void *  buf,
file_ptr  nbytes,
file_ptr  offset 
)
static
static int lzma_stat ( struct bfd *  abfd,
void *  stream,
struct stat *  sb 
)
static

Definition at line 238 of file minidebug.c.

References gdb_lzma_stream::index.

Referenced by find_separate_debug_file_in_section().

Variable Documentation

lzma_allocator gdb_lzma_allocator = { alloc_lzma, free_lzma, NULL }
static

Definition at line 49 of file minidebug.c.

Referenced by lzma_close(), lzma_open(), and lzma_pread().