GDB (xrefs)
|
#include "gdbsupport/scoped_fd.h"
Go to the source code of this file.
Classes | |
class | source_lines_range |
Enumerations | |
enum | openp_flag { OPF_TRY_CWD_FIRST = 0x01 , OPF_SEARCH_IN_PATH = 0x02 , OPF_RETURN_REALPATH = 0x04 } |
enum | print_source_lines_flag { PRINT_SOURCE_LINES_NOERROR = (1 << 0) , PRINT_SOURCE_LINES_FILENAME = (1 << 1) } |
Functions | |
DEF_ENUM_FLAGS_TYPE (openp_flag, openp_flags) | |
int | openp (const char *, openp_flags, const char *, int, gdb::unique_xmalloc_ptr< char > *) |
int | source_full_path_of (const char *, gdb::unique_xmalloc_ptr< char > *) |
void | mod_path (const char *, std::string &) |
void | add_path (const char *, char **, int) |
void | add_path (const char *, std::string &, int) |
void | directory_switch (const char *, int) |
void | init_source_path (void) |
scoped_fd | find_and_open_source (const char *filename, const char *dirname, gdb::unique_xmalloc_ptr< char > *fullname) |
gdb::unique_xmalloc_ptr< char > | find_source_or_rewrite (const char *filename, const char *dirname) |
scoped_fd | open_source_file (struct symtab *s) |
gdb::unique_xmalloc_ptr< char > | rewrite_source_path (const char *path) |
const char * | symtab_to_fullname (struct symtab *s) |
const char * | symtab_to_filename_for_display (struct symtab *symtab) |
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) |
symtab_and_line | set_current_source_symtab_and_line (const symtab_and_line &sal) |
void | clear_current_source_symtab_and_line (void) |
void | add_substitute_path_rule (const char *, const char *) |
DEF_ENUM_FLAGS_TYPE (enum print_source_lines_flag, print_source_lines_flags) | |
void | print_source_lines (struct symtab *s, int line, int stopline, print_source_lines_flags flags) |
int | last_symtab_line (struct symtab *s) |
bool | can_print_line (struct symtab *s, int line) |
void | print_source_lines (struct symtab *s, source_lines_range r, print_source_lines_flags flags) |
void | forget_cached_source_info (void) |
void | select_source_symtab () |
Variables | |
std::string | source_path |
enum openp_flag |
|
extern |
Definition at line 489 of file source.c.
References file_name_style, name, prefix, cli_style_option::style(), styled_string(), warning_filename_and_errno(), and xfree().
Referenced by add_path(), directory_switch(), env_mod_path(), and mod_path().
|
extern |
Definition at line 662 of file source.c.
References add_path(), and xfree().
|
extern |
Definition at line 1734 of file source.c.
References substitute_path_rules.
Referenced by captured_main_1(), and set_substitute_path_command().
|
extern |
|
extern |
Definition at line 302 of file source.c.
References current_program_space, get_source_location(), and loc.
Referenced by clear_symtab_users(), list_command(), and objfile::~objfile().
DEF_ENUM_FLAGS_TYPE | ( | enum | print_source_lines_flag, |
print_source_lines_flags | ) |
DEF_ENUM_FLAGS_TYPE | ( | openp_flag | , |
openp_flags | ) |
|
extern |
Definition at line 469 of file source.c.
References add_path(), and source_path.
Referenced by captured_main_1().
|
extern |
Definition at line 1027 of file source.c.
References cdir_len, OPEN_MODE, openp(), OPF_RETURN_REALPATH, OPF_SEARCH_IN_PATH, prepare_path_for_appending(), rewrite_source_path(), source_open, and source_path.
Referenced by find_source_or_rewrite(), and open_source_file().
|
extern |
Definition at line 1199 of file source.c.
References find_and_open_source(), and rewrite_source_path().
Referenced by dw2_get_real_path(), file_and_directory::get_fullname(), and psymtab_to_fullname().
|
extern |
Definition at line 417 of file source.c.
References source_cache::clear(), objfile::forget_cached_source_info(), g_source_cache, last_source_visited, and program_spaces.
Referenced by cd_command(), directory_command(), init_source_path(), mi_cmd_env_dir(), reread_symbols(), set_substitute_path_command(), set_use_gnu_source_highlight_enabled(), source_cache_flush_command(), and unset_substitute_path_command().
|
extern |
Definition at line 239 of file source.c.
References current_program_space, get_source_location(), and loc.
Referenced by decode_line_with_current_source(), default_macro_scope(), tui_source_window::display_start_addr(), tui_source_window::do_scroll_vertical(), edit_command(), get_expr_block_and_pc(), initialize_defaults(), jump_command(), list_command(), mi_cmd_file_list_exec_source_file(), parse_breakpoint_sals(), parse_exp_in_context(), tui_source_window_base::refill(), tui_source_window_base::rerender(), tui_get_begin_asm_address(), tui_refresh_frame_and_register_information(), and objfile::~objfile().
|
extern |
Definition at line 196 of file source.c.
References first_line_listed.
Referenced by list_command().
|
extern |
Definition at line 217 of file source.c.
References lines_to_list.
Referenced by edit_command(), list_around_line(), list_command(), and source_lines_range::source_lines_range().
|
extern |
Definition at line 428 of file source.c.
References forget_cached_source_info(), and source_path.
Referenced by directory_command(), mi_cmd_env_dir(), and set_directories_command().
|
extern |
Definition at line 1484 of file source.c.
References g_source_cache, and source_cache::get_line_charpos().
Referenced by list_command().
|
extern |
Definition at line 477 of file source.c.
References add_path().
Referenced by directory_command(), path_command(), and set_directories_command().
|
extern |
Definition at line 1143 of file source.c.
References build_id_bfd_get(), symtab::compunit(), debuginfod_source_query(), compunit_symtab::dirname(), symtab::filename, find_and_open_source(), symtab::fullname, objfile::obfd, and compunit_symtab::objfile().
Referenced by source_cache::get_plain_source_lines(), print_source_lines_base(), search_command_helper(), and symtab_to_fullname().
|
extern |
Definition at line 772 of file source.c.
References O_BINARY, OPF_RETURN_REALPATH, OPF_SEARCH_IN_PATH, OPF_TRY_CWD_FIRST, and prepare_path_for_appending().
Referenced by exec_file_attach(), find_and_open_script(), find_and_open_source(), nto_find_and_open_solib(), solib_find_1(), source_full_path_of(), symfile_bfd_open(), and try_open_dwop_file().
|
extern |
Definition at line 1465 of file source.c.
References flags, and print_source_lines_base().
Referenced by btrace_print_lines(), do_mixed_source_and_assembly(), do_mixed_source_and_assembly_deprecated(), list_around_line(), list_command(), print_frame_info(), py_print_frame(), and search_command_helper().
|
extern |
Definition at line 1474 of file source.c.
References flags, print_source_lines_base(), source_lines_range::startline(), and source_lines_range::stopline().
|
extern |
Definition at line 1011 of file source.c.
References substitute_path_rule::from, get_substitute_path_rule(), and substitute_path_rule::to.
Referenced by find_and_open_source(), find_source_or_rewrite(), and symtab_to_fullname().
|
extern |
Definition at line 311 of file source.c.
References symbol::aclass(), current_program_space, symtab::filename, find_function_start_sal(), objfile::find_last_source_symtab(), get_source_location(), symtab_and_line::line, lines_to_list, loc, LOC_BLOCK, lookup_symbol(), main_name(), name, new_symtab(), program_space::objfiles(), block_symbol::symbol, symbol::symtab, symtab_and_line::symtab, and VAR_DOMAIN.
Referenced by search_command_helper(), and set_default_source_symtab_and_line().
|
extern |
Definition at line 279 of file source.c.
References clear_lines_listed_range(), symtab_and_line::end, get_source_location(), symtab_and_line::line, loc, symtab_and_line::pc, symtab_and_line::pspace, and symtab_and_line::symtab.
Referenced by annotate_source_line(), and set_current_sal_from_frame().
|
extern |
Definition at line 262 of file source.c.
References current_program_space, get_source_location(), have_full_symbols(), have_partial_symbols(), loc, and select_source_symtab().
Referenced by create_sals_line_offset(), edit_command(), list_command(), mi_cmd_file_list_exec_source_file(), and tui_get_begin_asm_address().
|
extern |
Definition at line 944 of file source.c.
References openp(), OPF_RETURN_REALPATH, OPF_SEARCH_IN_PATH, OPF_TRY_CWD_FIRST, and source_path.
Referenced by exec_file_find().
|
extern |
Definition at line 1269 of file source.c.
References symtab::filename, filename_display_absolute, filename_display_basename, filename_display_relative, filename_display_string, and symtab_to_fullname().
Referenced by bkscm_print_block_syms_progress_smob(), btrace_call_history_src_line(), build_address_symbolic(), debug_symtab_name(), decode_line_2(), do_mixed_source_and_assembly(), dump_objfile(), dump_symtab_1(), edit_command(), error_in_psymtab_expansion(), fixup_go_packaging(), ftrace_print_filename(), gdbscm_symtab_filename(), source_cache::get_plain_source_lines(), info_checkpoints_command(), info_frame_command_core(), info_line_command(), info_module_subcommand(), info_sources_worker(), list_command(), maintenance_check_symtabs(), maintenance_info_line_tables(), maintenance_info_symtabs(), maintenance_print_symbols(), mdebug_expand_psymtab(), mi_cmd_file_list_exec_source_file(), mi_symbol_info(), output_module_symbols_in_single_module_and_file(), print_breakpoint_location(), print_one_static_tracepoint_marker(), print_sal_location(), print_source_lines_base(), print_symbol_info(), resolve_sal_pc(), sal_macro_scope(), salpy_str(), code_breakpoint::say_where(), search_command_helper(), tui_source_window::set_contents(), set_traceframe_context(), stpy_get_filename(), stpy_str(), stscm_print_symtab_smob(), symtab_symbol_info(), tfind_line_command(), update_static_tracepoint(), and user_select_syms().
|
extern |
Definition at line 1234 of file source.c.
References symtab::compunit(), compunit_symtab::dirname(), symtab::filename, symtab::fullname, open_source_file(), and rewrite_source_path().
Referenced by global_symbol_searcher::add_matching_symbols(), add_sal_to_sals(), canonical_to_fullform(), clear_command(), skiplist_entry::do_skip_file_p(), skiplist_entry::do_skip_gfile_p(), edit_command(), source_cache::ensure(), find_line_symtab(), ftrace_function_switched(), gdbscm_symtab_fullname(), source_cache::get_line_charpos(), info_sources_worker(), is_known_support_routine(), iterate_over_some_symtabs(), tui_source_window::location_matches_p(), maintenance_print_one_line_table(), mi_cmd_file_list_exec_source_file(), mi_symbol_info(), output_module_symbols_in_single_module_and_file(), print_breakpoint_location(), print_one_static_tracepoint_marker(), print_source_lines_base(), rbreak_command(), tui_source_window::set_contents(), tui_location_tracker::set_fullname(), skip_file_command(), stpy_fullname(), symtab_to_filename_for_display(), and update_static_tracepoint().
|
extern |
Definition at line 62 of file source.c.
Referenced by directory_command(), directory_switch(), find_and_open_script(), find_and_open_source(), init_source_path(), mi_cmd_env_dir(), set_directories_command(), show_directories_1(), and source_full_path_of().