GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
symfile-debug.c File Reference
#include "defs.h"
#include "gdbcmd.h"
#include "objfiles.h"
#include "observable.h"
#include "source.h"
#include "symtab.h"
#include "symfile.h"
#include "block.h"
#include "filenames.h"
#include "cli/cli-style.h"

Go to the source code of this file.

Classes

struct  debug_sym_fns_data
 
struct  debug_sym_fns_data::debug_sf
 

Macros

#define COPY_SF_PTR(from, to, name, func)
 

Functions

static int symfile_debug_installed (struct objfile *objfile)
 
static const char * debug_symtab_name (struct symtab *symtab)
 
static const std::vector< std::unique_ptr< probe > > & debug_sym_get_probes (struct objfile *objfile)
 
static void debug_sym_new_init (struct objfile *objfile)
 
static void debug_sym_init (struct objfile *objfile)
 
static void debug_sym_read (struct objfile *objfile, symfile_add_flags symfile_flags)
 
static void debug_sym_finish (struct objfile *objfile)
 
static void debug_sym_offsets (struct objfile *objfile, const section_addr_info &info)
 
static symfile_segment_data_up debug_sym_segments (bfd *abfd)
 
static void debug_sym_read_linetable (struct objfile *objfile)
 
static bfd_byte * debug_sym_relocate (struct objfile *objfile, asection *sectp, bfd_byte *buf)
 
static void install_symfile_debug_logging (struct objfile *objfile)
 
static void uninstall_symfile_debug_logging (struct objfile *objfile)
 
void objfile_set_sym_fns (struct objfile *objfile, const struct sym_fns *sf)
 
static void set_debug_symfile (const char *args, int from_tty, struct cmd_list_element *c)
 
static void show_debug_symfile (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
void _initialize_symfile_debug ()
 

Variables

static const registry< objfile >::key< debug_sym_fns_datasymfile_debug_objfile_data_key
 
static bool debug_symfile = false
 
static const struct sym_probe_fns debug_sym_probe_fns
 
static const struct sym_fns debug_sym_fns
 

Macro Definition Documentation

◆ COPY_SF_PTR

#define COPY_SF_PTR ( from,
to,
name,
func )
Value:
do { \
if ((from)->name) \
(to)->debug_sf.name = func; \
} while (0)
const char *const name
void(* func)(remote_target *remote, char *)

Function Documentation

◆ _initialize_symfile_debug()

void _initialize_symfile_debug ( )

Definition at line 816 of file symfile-debug.c.

Referenced by initialize_all_files().

◆ debug_sym_finish()

static void debug_sym_finish ( struct objfile * objfile)
static

◆ debug_sym_get_probes()

static const std::vector< std::unique_ptr< probe > > & debug_sym_get_probes ( struct objfile * objfile)
static

◆ debug_sym_init()

static void debug_sym_init ( struct objfile * objfile)
static

◆ debug_sym_new_init()

static void debug_sym_new_init ( struct objfile * objfile)
static

◆ debug_sym_offsets()

static void debug_sym_offsets ( struct objfile * objfile,
const section_addr_info & info )
static

◆ debug_sym_read()

static void debug_sym_read ( struct objfile * objfile,
symfile_add_flags symfile_flags )
static

◆ debug_sym_read_linetable()

static void debug_sym_read_linetable ( struct objfile * objfile)
static

◆ debug_sym_relocate()

static bfd_byte * debug_sym_relocate ( struct objfile * objfile,
asection * sectp,
bfd_byte * buf )
static

◆ debug_sym_segments()

static symfile_segment_data_up debug_sym_segments ( bfd * abfd)
static

Definition at line 651 of file symfile-debug.c.

Referenced by install_symfile_debug_logging().

◆ debug_symtab_name()

static const char * debug_symtab_name ( struct symtab * symtab)
static

◆ install_symfile_debug_logging()

static void install_symfile_debug_logging ( struct objfile * objfile)
static

◆ objfile_set_sym_fns()

void objfile_set_sym_fns ( struct objfile * objfile,
const struct sym_fns * sf )

◆ set_debug_symfile()

static void set_debug_symfile ( const char * args,
int from_tty,
struct cmd_list_element * c )
static

◆ show_debug_symfile()

static void show_debug_symfile ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

Definition at line 808 of file symfile-debug.c.

References gdb_printf().

◆ symfile_debug_installed()

static int symfile_debug_installed ( struct objfile * objfile)
static

◆ uninstall_symfile_debug_logging()

static void uninstall_symfile_debug_logging ( struct objfile * objfile)
static

Variable Documentation

◆ debug_sym_fns

const struct sym_fns debug_sym_fns
static
Initial value:
=
{
}
static void debug_sym_new_init(struct objfile *objfile)
static void debug_sym_read_linetable(struct objfile *objfile)
static void debug_sym_finish(struct objfile *objfile)
static const struct sym_probe_fns debug_sym_probe_fns
static void debug_sym_offsets(struct objfile *objfile, const section_addr_info &info)
static void debug_sym_init(struct objfile *objfile)
static bfd_byte * debug_sym_relocate(struct objfile *objfile, asection *sectp, bfd_byte *buf)
static void debug_sym_read(struct objfile *objfile, symfile_add_flags symfile_flags)
static symfile_segment_data_up debug_sym_segments(bfd *abfd)

Definition at line 695 of file symfile-debug.c.

◆ debug_sym_probe_fns

const struct sym_probe_fns debug_sym_probe_fns
static
Initial value:
=
{
}
static const std::vector< std::unique_ptr< probe > > & debug_sym_get_probes(struct objfile *objfile)

Definition at line 581 of file symfile-debug.c.

Referenced by install_symfile_debug_logging().

◆ debug_symfile

bool debug_symfile = false
static

◆ symfile_debug_objfile_data_key

const registry<objfile>::key<debug_sym_fns_data> symfile_debug_objfile_data_key
static