GDB (xrefs)
Classes | Macros | Functions | Variables
/tmp/gdb-8.1/gdb/auxv.c File Reference
#include "defs.h"
#include "target.h"
#include "gdbtypes.h"
#include "command.h"
#include "inferior.h"
#include "valprint.h"
#include "gdbcore.h"
#include "observer.h"
#include "filestuff.h"
#include "objfiles.h"
#include "auxv.h"
#include "elf/common.h"
#include <unistd.h>
#include <fcntl.h>

Go to the source code of this file.

Classes

struct  auxv_info
 

Macros

#define TAG(tag, text, kind)   case tag: name = #tag; description = text; format = kind; break
 

Functions

static enum target_xfer_status procfs_xfer_auxv (gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
 
static enum target_xfer_status ld_so_xfer_auxv (gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
 
enum target_xfer_status memory_xfer_auxv (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
 
int default_auxv_parse (struct target_ops *ops, gdb_byte **readptr, gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp)
 
int target_auxv_parse (struct target_ops *ops, gdb_byte **readptr, gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp)
 
static void auxv_inferior_data_cleanup (struct inferior *inf, void *arg)
 
static void invalidate_auxv_cache_inf (struct inferior *inf)
 
static void invalidate_auxv_cache (void)
 
static struct auxv_infoget_auxv_inferior_data (struct target_ops *ops)
 
int target_auxv_search (struct target_ops *ops, CORE_ADDR match, CORE_ADDR *valp)
 
void fprint_auxv_entry (struct ui_file *file, const char *name, const char *description, enum auxv_format format, CORE_ADDR type, CORE_ADDR val)
 
void default_print_auxv_entry (struct gdbarch *gdbarch, struct ui_file *file, CORE_ADDR type, CORE_ADDR val)
 
int fprint_target_auxv (struct ui_file *file, struct target_ops *ops)
 
static void info_auxv_command (const char *cmd, int from_tty)
 
void _initialize_auxv (void)
 

Variables

static const struct inferior_data * auxv_inferior_data
 

Macro Definition Documentation

◆ TAG

#define TAG (   tag,
  text,
  kind 
)    case tag: name = #tag; description = text; format = kind; break

Function Documentation

◆ _initialize_auxv()

void _initialize_auxv ( void  )

◆ auxv_inferior_data_cleanup()

static void auxv_inferior_data_cleanup ( struct inferior inf,
void *  arg 
)
static

Definition at line 319 of file auxv.c.

References auxv_inferior_data, auxv_info::data, and xfree().

Referenced by _initialize_auxv(), and invalidate_auxv_cache_inf().

◆ default_auxv_parse()

int default_auxv_parse ( struct target_ops ops,
gdb_byte **  readptr,
gdb_byte endptr,
CORE_ADDR typep,
CORE_ADDR valp 
)

◆ default_print_auxv_entry()

void default_print_auxv_entry ( struct gdbarch gdbarch,
struct ui_file file,
CORE_ADDR  type,
CORE_ADDR  val 
)

◆ fprint_auxv_entry()

void fprint_auxv_entry ( struct ui_file file,
const char *  name,
const char *  description,
enum auxv_format  format,
CORE_ADDR  type,
CORE_ADDR  val 
)

◆ fprint_target_auxv()

int fprint_target_auxv ( struct ui_file file,
struct target_ops ops 
)

◆ get_auxv_inferior_data()

static struct auxv_info* get_auxv_inferior_data ( struct target_ops ops)
static

◆ info_auxv_command()

static void info_auxv_command ( const char *  cmd,
int  from_tty 
)
static

Definition at line 555 of file auxv.c.

References _, current_target, error(), fprint_target_auxv(), gdb_stdout, and target_has_stack.

Referenced by _initialize_auxv().

◆ invalidate_auxv_cache()

static void invalidate_auxv_cache ( void  )
static

Definition at line 343 of file auxv.c.

References current_inferior(), and invalidate_auxv_cache_inf().

Referenced by _initialize_auxv().

◆ invalidate_auxv_cache_inf()

static void invalidate_auxv_cache_inf ( struct inferior inf)
static

Definition at line 335 of file auxv.c.

References auxv_inferior_data_cleanup().

Referenced by _initialize_auxv(), and invalidate_auxv_cache().

◆ ld_so_xfer_auxv()

static enum target_xfer_status ld_so_xfer_auxv ( gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  offset,
ULONGEST  len,
ULONGEST xfered_len 
)
static

◆ memory_xfer_auxv()

enum target_xfer_status memory_xfer_auxv ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  offset,
ULONGEST  len,
ULONGEST xfered_len 
)

◆ procfs_xfer_auxv()

static enum target_xfer_status procfs_xfer_auxv ( gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  offset,
ULONGEST  len,
ULONGEST xfered_len 
)
static

◆ target_auxv_parse()

int target_auxv_parse ( struct target_ops ops,
gdb_byte **  readptr,
gdb_byte endptr,
CORE_ADDR typep,
CORE_ADDR valp 
)

◆ target_auxv_search()

int target_auxv_search ( struct target_ops ops,
CORE_ADDR  match,
CORE_ADDR valp 
)

Variable Documentation

◆ auxv_inferior_data

const struct inferior_data* auxv_inferior_data
static

Definition at line 300 of file auxv.c.

Referenced by _initialize_auxv(), auxv_inferior_data_cleanup(), and get_auxv_inferior_data().