GDB (xrefs)
Classes | Defines | Functions | Variables
/home/stan/gdb/src/gdb/corelow.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include "gdb_string.h"
#include <errno.h>
#include <signal.h>
#include <fcntl.h>
#include "frame.h"
#include "inferior.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 "gdb_assert.h"
#include "exceptions.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

Defines

#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_open (char *, int)
static void core_detach (struct target_ops *ops, char *, int)
static void core_close (void)
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 get_core_register_section (struct regcache *regcache, const char *name, int which, const char *human_name, int required)
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, LONGEST len)
static LONGEST core_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, LONGEST len)
static int ignore (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
static int core_thread_alive (struct target_ops *ops, ptid_t ptid)
static 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, 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_table
core_data
static struct target_ops core_ops

Define Documentation

#define CORELOW_PID   1

Definition at line 103 of file corelow.c.

Referenced by add_to_thread_list(), and core_open().

#define O_LARGEFILE   0

Definition at line 53 of file corelow.c.

Referenced by core_open().


Function Documentation

void _initialize_corelow ( void  )
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 ( void  ) [static]
static void core_close_cleanup ( void *  ignore) [static]

Definition at line 226 of file corelow.c.

References core_close().

Referenced by core_open().

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

Definition at line 468 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 613 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 913 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 925 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 919 of file corelow.c.

References core_bfd.

Referenced by init_core_ops().

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

Definition at line 860 of file corelow.c.

Referenced by init_core_ops().

static LONGEST core_xfer_partial ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  offset,
LONGEST  len 
) [static]
int default_check_format ( bfd *  abfd)

Definition at line 171 of file corelow.c.

int default_core_sniffer ( struct core_fns our_fns,
bfd *  abfd 
)

Definition at line 122 of file corelow.c.

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

Definition at line 179 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 char *  name,
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 LONGEST get_core_siginfo ( bfd *  abfd,
gdb_byte readbuf,
ULONGEST  offset,
LONGEST  len 
) [static]

Definition at line 654 of file corelow.c.

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

Referenced by core_xfer_partial().

static int ignore ( struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
) [static]

Definition at line 847 of file corelow.c.

Referenced by init_core_ops(), and prompt_for_continue().

static void init_core_ops ( void  ) [static]
static struct core_fns * sniff_core_bfd ( bfd *  abfd) [static, read]

Variable Documentation

struct target_section_table* core_data [static]

Definition at line 78 of file corelow.c.

struct core_fns* core_file_fns = NULL [static]

Definition at line 60 of file corelow.c.

Referenced by deprecated_add_core_fns().

struct gdbarch* core_gdbarch = NULL [static]

Definition at line 70 of file corelow.c.

Referenced by linux_core_info_proc_mappings().

struct target_ops core_ops [static]

Definition at line 100 of file corelow.c.

Referenced by core_open(), and init_core_ops().

struct core_fns* core_vec = NULL [static]

Definition at line 65 of file corelow.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines