GDB (xrefs)
Classes | Macros | Functions | Variables
/tmp/gdb-7.10/gdb/corelow.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include <signal.h>
#include <fcntl.h>
#include <sys/file.h>
#include "frame.h"
#include "inferior.h"
#include "infrun.h"
#include "symtab.h"
#include "command.h"
#include "bfd.h"
#include "target.h"
#include "gdbcore.h"
#include "gdbthread.h"
#include "regcache.h"
#include "regset.h"
#include "symfile.h"
#include "exec.h"
#include "readline/readline.h"
#include "solib.h"
#include "filenames.h"
#include "progspace.h"
#include "objfiles.h"
#include "gdb_bfd.h"
#include "completer.h"
#include "filestuff.h"

Go to the source code of this file.

Classes

struct  spuid_list
 

Macros

#define O_LARGEFILE   0
 
#define CORELOW_PID   1
 

Functions

static void core_files_info (struct target_ops *)
 
static struct core_fnssniff_core_bfd (bfd *)
 
static int gdb_check_format (bfd *)
 
static void core_close (struct target_ops *self)
 
static void core_close_cleanup (void *ignore)
 
static void add_to_thread_list (bfd *, asection *, void *)
 
static void init_core_ops (void)
 
void _initialize_corelow (void)
 
void deprecated_add_core_fns (struct core_fns *cf)
 
int default_core_sniffer (struct core_fns *our_fns, bfd *abfd)
 
int default_check_format (bfd *abfd)
 
static void core_open (const char *arg, int from_tty)
 
static void core_detach (struct target_ops *ops, const char *args, int from_tty)
 
static void get_core_register_section (struct regcache *regcache, const struct regset *regset, const char *name, int min_size, int which, const char *human_name, int required)
 
static void get_core_registers_cb (const char *sect_name, int size, const struct regset *regset, const char *human_name, void *cb_data)
 
static void get_core_registers (struct target_ops *ops, struct regcache *regcache, int regno)
 
static void add_to_spuid_list (bfd *abfd, asection *asect, void *list_p)
 
static LONGEST get_core_siginfo (bfd *abfd, gdb_byte *readbuf, ULONGEST offset, ULONGEST len)
 
static enum target_xfer_status core_xfer_partial (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)
 
static int ignore (struct target_ops *ops, struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
 
static int core_thread_alive (struct target_ops *ops, ptid_t ptid)
 
static const struct target_desccore_read_description (struct target_ops *target)
 
static char * core_pid_to_str (struct target_ops *ops, ptid_t ptid)
 
static int core_has_memory (struct target_ops *ops)
 
static int core_has_stack (struct target_ops *ops)
 
static int core_has_registers (struct target_ops *ops)
 
static void core_info_proc (struct target_ops *ops, const char *args, enum info_proc_what request)
 

Variables

static struct core_fnscore_file_fns = NULL
 
static struct core_fnscore_vec = NULL
 
static struct gdbarchcore_gdbarch = NULL
 
static struct target_section_tablecore_data
 
static struct target_ops core_ops
 

Macro Definition Documentation

#define CORELOW_PID   1

Definition at line 96 of file corelow.c.

Referenced by add_to_thread_list(), and core_open().

#define O_LARGEFILE   0

Definition at line 50 of file corelow.c.

Referenced by core_open().

Function Documentation

void _initialize_corelow ( void  )

Definition at line 1056 of file corelow.c.

References add_target_with_completer(), core_ops, and init_core_ops().

static void add_to_spuid_list ( bfd *  abfd,
asection *  asect,
void *  list_p 
)
static
static void add_to_thread_list ( bfd *  abfd,
asection *  asect,
void *  reg_sect_arg 
)
static
static void core_close ( struct target_ops self)
static
static void core_close_cleanup ( void *  ignore)
static

Definition at line 219 of file corelow.c.

References core_close().

Referenced by core_open().

static void core_detach ( struct target_ops ops,
const char *  args,
int  from_tty 
)
static

Definition at line 480 of file corelow.c.

References _, error(), printf_filtered(), reinit_frame_cache(), and unpush_target().

Referenced by init_core_ops().

static void core_files_info ( struct target_ops t)
static

Definition at line 642 of file corelow.c.

References core_bfd, and print_section_info().

Referenced by init_core_ops().

static int core_has_memory ( struct target_ops ops)
static

Definition at line 990 of file corelow.c.

References core_bfd.

Referenced by init_core_ops().

static int core_has_registers ( struct target_ops ops)
static

Definition at line 1002 of file corelow.c.

References core_bfd.

Referenced by init_core_ops().

static int core_has_stack ( struct target_ops ops)
static

Definition at line 996 of file corelow.c.

References core_bfd.

Referenced by init_core_ops().

static void core_info_proc ( struct target_ops ops,
const char *  args,
enum info_proc_what  request 
)
static
static void core_open ( const char *  arg,
int  from_tty 
)
static
static char* core_pid_to_str ( struct target_ops ops,
ptid_t  ptid 
)
static
static const struct target_desc* core_read_description ( struct target_ops target)
static
static int core_thread_alive ( struct target_ops ops,
ptid_t  ptid 
)
static

Definition at line 931 of file corelow.c.

Referenced by init_core_ops().

static enum target_xfer_status core_xfer_partial ( 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 
)
static
int default_check_format ( bfd *  abfd)

Definition at line 164 of file corelow.c.

int default_core_sniffer ( struct core_fns our_fns,
bfd *  abfd 
)

Definition at line 115 of file corelow.c.

void deprecated_add_core_fns ( struct core_fns cf)
static int gdb_check_format ( bfd *  abfd)
static

Definition at line 172 of file corelow.c.

References core_fns::check_format, and core_fns::next.

Referenced by core_open().

static void get_core_register_section ( struct regcache regcache,
const struct regset regset,
const char *  name,
int  min_size,
int  which,
const char *  human_name,
int  required 
)
static
static void get_core_registers ( struct target_ops ops,
struct regcache regcache,
int  regno 
)
static
static void get_core_registers_cb ( const char *  sect_name,
int  size,
const struct regset regset,
const char *  human_name,
void *  cb_data 
)
static

Definition at line 575 of file corelow.c.

References get_core_register_section(), and required.

Referenced by get_core_registers().

static LONGEST get_core_siginfo ( bfd *  abfd,
gdb_byte readbuf,
ULONGEST  offset,
ULONGEST  len 
)
static

Definition at line 683 of file corelow.c.

References inferior_ptid, len, name, ptid_get_lwp(), xfree(), and xstrprintf().

Referenced by core_xfer_partial().

static int ignore ( struct target_ops ops,
struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
)
static

Definition at line 917 of file corelow.c.

Referenced by init_core_ops(), prompt_for_continue(), and yylex().

static void init_core_ops ( void  )
static
static struct core_fns * sniff_core_bfd ( bfd *  abfd)
static

Variable Documentation

struct target_section_table* core_data
static

Definition at line 75 of file corelow.c.

struct core_fns* core_file_fns = NULL
static

Definition at line 57 of file corelow.c.

Referenced by deprecated_add_core_fns().

struct gdbarch* core_gdbarch = NULL
static

Definition at line 67 of file corelow.c.

Referenced by linux_core_info_proc_mappings().

struct target_ops core_ops
static

Definition at line 93 of file corelow.c.

Referenced by _initialize_corelow(), core_open(), and init_core_ops().

struct core_fns* core_vec = NULL
static

Definition at line 62 of file corelow.c.