GDB (API)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/source.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include "symtab.h"
#include "expression.h"
#include "language.h"
#include "command.h"
#include "source.h"
#include "gdbcmd.h"
#include "frame.h"
#include "value.h"
#include "gdb_assert.h"
#include "filestuff.h"
#include <sys/types.h>
#include "gdb_string.h"
#include "gdb_stat.h"
#include <fcntl.h>
#include "gdbcore.h"
#include "gdb_regex.h"
#include "symfile.h"
#include "objfiles.h"
#include "annotate.h"
#include "gdbtypes.h"
#include "linespec.h"
#include "filenames.h"
#include "completer.h"
#include "ui-out.h"
#include "readline/readline.h"

Go to the source code of this file.

Defines

#define OPEN_MODE   (O_RDONLY | O_BINARY)
#define FDOPEN_MODE   FOPEN_RB
#define cdir_len   5

Functions

void _initialize_source (void)
int get_first_line_listed (void)
int get_lines_to_list (void)
struct symtab_and_line get_current_source_symtab_and_line (void)
void set_default_source_symtab_and_line (void)
struct symtab_and_line set_current_source_symtab_and_line (const struct symtab_and_line *sal)
void clear_current_source_symtab_and_line (void)
void select_source_symtab (struct symtab *s)
void forget_cached_source_info_for_objfile (struct objfile *objfile)
void forget_cached_source_info (void)
void init_source_path (void)
void directory_switch (char *dirname, int from_tty)
void mod_path (char *dirname, char **which_path)
void add_path (char *dirname, char **which_path, int parse_separators)
int openp (const char *path, int opts, const char *string, int mode, char **filename_opened)
int source_full_path_of (const char *filename, char **full_pathname)
char * rewrite_source_path (const char *path)
int find_and_open_source (const char *filename, const char *dirname, char **fullname)
int open_source_file (struct symtab *s)
const char * symtab_to_fullname (struct symtab *s)
const char * symtab_to_filename_for_display (struct symtab *symtab)
void find_source_lines (struct symtab *s, int desc)
int identify_source_line (struct symtab *s, int line, int mid_statement, CORE_ADDR pc)
void print_source_lines (struct symtab *s, int line, int stopline, enum print_source_lines_flags flags)
void add_substitute_path_rule (char *from, char *to)

Variables

char * source_path
int lines_to_list = 10

Define Documentation

#define cdir_len   5
#define FDOPEN_MODE   FOPEN_RB

Definition at line 49 of file source.c.

#define OPEN_MODE   (O_RDONLY | O_BINARY)

Definition at line 48 of file source.c.


Function Documentation

void _initialize_source ( void  )
void add_path ( char *  dirname,
char **  which_path,
int  parse_separators 
)

Definition at line 459 of file source.c.

void add_substitute_path_rule ( char *  from,
char *  to 
)

Definition at line 1799 of file source.c.

Definition at line 229 of file source.c.

void directory_switch ( char *  dirname,
int  from_tty 
)

Definition at line 439 of file source.c.

int find_and_open_source ( const char *  filename,
const char *  dirname,
char **  fullname 
)

Definition at line 993 of file source.c.

void find_source_lines ( struct symtab s,
int  desc 
)

Definition at line 1176 of file source.c.

void forget_cached_source_info ( void  )

Definition at line 387 of file source.c.

void forget_cached_source_info_for_objfile ( struct objfile objfile)

Definition at line 360 of file source.c.

Definition at line 171 of file source.c.

Definition at line 151 of file source.c.

int get_lines_to_list ( void  )

Definition at line 162 of file source.c.

int identify_source_line ( struct symtab s,
int  line,
int  mid_statement,
CORE_ADDR  pc 
)

Definition at line 1285 of file source.c.

void init_source_path ( void  )

Definition at line 402 of file source.c.

void mod_path ( char *  dirname,
char **  which_path 
)

Definition at line 447 of file source.c.

int open_source_file ( struct symtab s)

Definition at line 1102 of file source.c.

int openp ( const char *  path,
int  opts,
const char *  string,
int  mode,
char **  filename_opened 
)

Definition at line 703 of file source.c.

void print_source_lines ( struct symtab s,
int  line,
int  stopline,
enum print_source_lines_flags  flags 
)

Definition at line 1470 of file source.c.

char* rewrite_source_path ( const char *  path)

Definition at line 971 of file source.c.

void select_source_symtab ( struct symtab s)

Definition at line 244 of file source.c.

Definition at line 209 of file source.c.

Definition at line 193 of file source.c.

int source_full_path_of ( const char *  filename,
char **  full_pathname 
)

Definition at line 896 of file source.c.

const char* symtab_to_filename_for_display ( struct symtab symtab)

Definition at line 1158 of file source.c.

const char* symtab_to_fullname ( struct symtab s)

Definition at line 1120 of file source.c.


Variable Documentation

Definition at line 99 of file source.c.

char* source_path

Definition at line 70 of file source.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines