GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
corelow.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include <signal.h>
#include <fcntl.h>
#include "frame.h"
#include "inferior.h"
#include "infrun.h"
#include "symtab.h"
#include "command.h"
#include "bfd.h"
#include "target.h"
#include "process-stratum-target.h"
#include "gdbcore.h"
#include "gdbthread.h"
#include "regcache.h"
#include "regset.h"
#include "symfile.h"
#include "exec.h"
#include "readline/tilde.h"
#include "solib.h"
#include "solist.h"
#include "filenames.h"
#include "progspace.h"
#include "objfiles.h"
#include "gdb_bfd.h"
#include "completer.h"
#include "gdbsupport/filestuff.h"
#include "build-id.h"
#include "gdbsupport/pathstuff.h"
#include "gdbsupport/scoped_fd.h"
#include "gdbsupport/x86-xstate.h"
#include "debuginfod-support.h"
#include <unordered_map>
#include <unordered_set>
#include "gdbcmd.h"
#include "xml-tdesc.h"
#include "memtag.h"

Go to the source code of this file.

Classes

class  core_target
 
struct  get_core_registers_cb_data
 

Macros

#define O_LARGEFILE   0
 
#define CORELOW_PID   1
 

Functions

static void add_to_thread_list (asection *asect, asection *reg_sect, inferior *inf)
 
static void maybe_say_no_core_file_now (int from_tty)
 
void core_file_command (const char *filename, int from_tty)
 
static void rename_vmcore_idle_reg_sections (bfd *abfd, inferior *inf)
 
static void locate_exec_from_corefile_build_id (bfd *abfd, int from_tty)
 
void core_target_open (const char *arg, int from_tty)
 
static void get_core_registers_cb (const char *sect_name, int supply_size, int collect_size, const struct regset *regset, const char *human_name, void *cb_data)
 
static core_targetget_current_core_target ()
 
static void maintenance_print_core_file_backed_mappings (const char *args, int from_tty)
 
void _initialize_corelow ()
 

Variables

static const target_info core_target_info
 

Macro Definition Documentation

◆ CORELOW_PID

#define CORELOW_PID   1

Definition at line 325 of file corelow.c.

Referenced by core_target_open().

◆ O_LARGEFILE

#define O_LARGEFILE   0

Definition at line 59 of file corelow.c.

Referenced by core_target_open().

Function Documentation

◆ _initialize_corelow()

void _initialize_corelow ( )

Definition at line 1502 of file corelow.c.

Referenced by initialize_all_files().

◆ add_to_thread_list()

static void add_to_thread_list ( asection * asect,
asection * reg_sect,
inferior * inf )
static

Definition at line 367 of file corelow.c.

References add_thread(), inf::pid, and switch_to_thread().

Referenced by core_target_open().

◆ core_file_command()

void core_file_command ( const char * filename,
int from_tty )

◆ core_target_open()

void core_target_open ( const char * arg,
int from_tty )

◆ get_core_registers_cb()

static void get_core_registers_cb ( const char * sect_name,
int supply_size,
int collect_size,
const struct regset * regset,
const char * human_name,
void * cb_data )
static

Definition at line 895 of file corelow.c.

References regset::flags, and REGSET_VARIABLE_SIZE.

Referenced by core_target::fetch_registers().

◆ get_current_core_target()

static core_target * get_current_core_target ( )
static

◆ locate_exec_from_corefile_build_id()

static void locate_exec_from_corefile_build_id ( bfd * abfd,
int from_tty )
static

◆ maintenance_print_core_file_backed_mappings()

static void maintenance_print_core_file_backed_mappings ( const char * args,
int from_tty )
static

◆ maybe_say_no_core_file_now()

static void maybe_say_no_core_file_now ( int from_tty)
static

Definition at line 386 of file corelow.c.

References gdb_printf().

Referenced by core_file_command(), and core_target::detach().

◆ rename_vmcore_idle_reg_sections()

static void rename_vmcore_idle_reg_sections ( bfd * abfd,
inferior * inf )
static

Definition at line 456 of file corelow.c.

References core_bfd, gdb_bfd_sections(), name, inf::pid, and target_pid_to_str().

Referenced by core_target_open().

Variable Documentation

◆ core_target_info

const target_info core_target_info
static
Initial value:
= {
"core",
N_("Local core dump file"),
N_("Use a core file as a target.\n\
Specify the filename of the core file.")
}

Definition at line 64 of file corelow.c.

Referenced by core_target::info().