GDB (xrefs)
Functions | Variables
/home/stan/gdb/src/gdb/exec.c File Reference
#include "defs.h"
#include "frame.h"
#include "inferior.h"
#include "target.h"
#include "gdbcmd.h"
#include "language.h"
#include "filenames.h"
#include "symfile.h"
#include "objfiles.h"
#include "completer.h"
#include "value.h"
#include "exec.h"
#include "observer.h"
#include "arch-utils.h"
#include "gdbthread.h"
#include "progspace.h"
#include "gdb_bfd.h"
#include <fcntl.h>
#include "readline/readline.h"
#include "gdb_string.h"
#include "gdbcore.h"
#include <ctype.h>
#include "gdb_stat.h"

Go to the source code of this file.

Functions

static void file_command (char *, int)
static void set_section_command (char *, int)
static void exec_files_info (struct target_ops *)
static void init_exec_ops (void)
void _initialize_exec (void)
static void show_write_files (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static void exec_open (char *args, int from_tty)
void exec_close (void)
static void exec_close_1 (void)
void exec_file_clear (int from_tty)
void exec_file_attach (char *filename, int from_tty)
static void exec_file_command (char *args, int from_tty)
static void add_to_section_table (bfd *abfd, struct bfd_section *asect, void *table_pp_char)
int resize_section_table (struct target_section_table *table, int num_added)
int build_section_table (struct bfd *some_bfd, struct target_section **start, struct target_section **end)
void add_target_sections (void *owner, struct target_section *sections, struct target_section *sections_end)
void remove_target_sections (void *owner)
 VEC (mem_range_s)
int section_table_xfer_memory_partial (gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, LONGEST len, struct target_section *sections, struct target_section *sections_end, const char *section_name)
static struct
target_section_table
exec_get_section_table (struct target_ops *ops)
static LONGEST exec_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, LONGEST len)
void print_section_info (struct target_section_table *t, bfd *abfd)
void exec_set_section_address (const char *filename, int index, CORE_ADDR address)
static int ignore (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
static int exec_has_memory (struct target_ops *ops)
void exec_set_find_memory_regions (int(*func)(find_memory_region_ftype, void *))
static char * exec_make_note_section (bfd *, int *)

Variables

void(* deprecated_file_changed_hook )(char *)
struct target_ops exec_ops
static int using_exec_ops
int write_files = 0

Function Documentation

void _initialize_exec ( void  )
void add_target_sections ( void *  owner,
struct target_section sections,
struct target_section sections_end 
)
static void add_to_section_table ( bfd *  abfd,
struct bfd_section *  asect,
void *  table_pp_char 
) [static]

Definition at line 336 of file exec.c.

References gdb_assert.

Referenced by build_section_table().

int build_section_table ( struct bfd *  some_bfd,
struct target_section **  start,
struct target_section **  end 
)
void exec_close ( void  )
static void exec_close_1 ( void  ) [static]
void exec_file_attach ( char *  filename,
int  from_tty 
)
void exec_file_clear ( int  from_tty)

Definition at line 141 of file exec.c.

References _, exec_close(), and printf_unfiltered().

Referenced by gdb_clear_file().

static void exec_file_command ( char *  args,
int  from_tty 
) [static]
static void exec_files_info ( struct target_ops t) [static]

Definition at line 682 of file exec.c.

References _, current_target_sections, exec_bfd, print_section_info(), and puts_filtered().

Referenced by init_exec_ops(), and set_section_command().

static struct target_section_table* exec_get_section_table ( struct target_ops ops) [static, read]

Definition at line 588 of file exec.c.

References current_target_sections.

Referenced by init_exec_ops().

static int exec_has_memory ( struct target_ops ops) [static]

Definition at line 765 of file exec.c.

References current_target_sections.

Referenced by init_exec_ops().

static char * exec_make_note_section ( bfd *  obfd,
int note_size 
) [static]

Definition at line 852 of file exec.c.

References _, and error().

Referenced by init_exec_ops().

static void exec_open ( char *  args,
int  from_tty 
) [static]

Definition at line 81 of file exec.c.

References exec_file_attach(), and target_preopen().

Referenced by init_exec_ops().

Definition at line 776 of file exec.c.

References exec_ops, func, and target_ops::to_find_memory_regions.

void exec_set_section_address ( const char *  filename,
int  index,
CORE_ADDR  address 
)
static LONGEST exec_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]
static void file_command ( char *  arg,
int  from_tty 
) [static]

Definition at line 320 of file exec.c.

References deprecated_file_changed_hook, exec_file_command(), and symbol_file_command().

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

Definition at line 759 of file exec.c.

Referenced by init_exec_ops().

static void init_exec_ops ( void  ) [static]
void print_section_info ( struct target_section_table t,
bfd *  abfd 
)
void remove_target_sections ( void *  owner)
int resize_section_table ( struct target_section_table table,
int  num_added 
)
int section_table_xfer_memory_partial ( gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  offset,
LONGEST  len,
struct target_section sections,
struct target_section sections_end,
const char *  section_name 
)
static void set_section_command ( char *  args,
int  from_tty 
) [static]
static void show_write_files ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
) [static]

Definition at line 72 of file exec.c.

References _, and fprintf_filtered().


Variable Documentation

Definition at line 47 of file exec.c.

Referenced by file_command(), and gdbtk_add_hooks().

int using_exec_ops [static]

Definition at line 66 of file exec.c.

Referenced by add_target_sections(), and exec_close_1().

Definition at line 70 of file exec.c.

Referenced by bsd_kvm_open(), captured_main(), core_open(), and exec_file_attach().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines