GDB (xrefs)
|
#include "defs.h"
#include "diagnostics.h"
#include <errno.h>
#include "gdbsupport/scoped_fd.h"
#include "debuginfod-support.h"
#include "gdbsupport/gdb_optional.h"
#include "cli/cli-cmds.h"
#include "cli/cli-style.h"
#include "cli-out.h"
#include "target.h"
#include <elfutils/debuginfod.h>
Go to the source code of this file.
Classes | |
struct | user_data |
struct | debuginfod_client_deleter |
Typedefs | |
using | debuginfod_client_up = std::unique_ptr< debuginfod_client, debuginfod_client_deleter > |
Functions | |
static const char * | get_size_and_unit (double &size) |
static int | progressfn (debuginfod_client *c, long cur, long total) |
static debuginfod_client * | get_debuginfod_client () |
static bool | debuginfod_is_enabled () |
static void | print_outcome (user_data &data, int fd) |
scoped_fd | debuginfod_source_query (const unsigned char *build_id, int build_id_len, const char *srcpath, gdb::unique_xmalloc_ptr< char > *destname) |
scoped_fd | debuginfod_debuginfo_query (const unsigned char *build_id, int build_id_len, const char *filename, gdb::unique_xmalloc_ptr< char > *destname) |
scoped_fd | debuginfod_exec_query (const unsigned char *build_id, int build_id_len, const char *filename, gdb::unique_xmalloc_ptr< char > *destname) |
static void | set_debuginfod_enabled (const char *value) |
static const char * | get_debuginfod_enabled () |
static void | show_debuginfod_enabled (ui_file *file, int from_tty, cmd_list_element *cmd, const char *value) |
static void | set_debuginfod_urls (const std::string &urls) |
static const std::string & | get_debuginfod_urls () |
static void | show_debuginfod_urls (ui_file *file, int from_tty, cmd_list_element *cmd, const char *value) |
static void | show_debuginfod_verbose_command (ui_file *file, int from_tty, cmd_list_element *cmd, const char *value) |
void | _initialize_debuginfod () |
Variables | |
static cmd_list_element * | set_debuginfod_prefix_list |
static cmd_list_element * | show_debuginfod_prefix_list |
static const char | debuginfod_on [] = "on" |
static const char | debuginfod_off [] = "off" |
static const char | debuginfod_ask [] = "ask" |
static const char * | debuginfod_enabled_enum [] |
static const char * | debuginfod_enabled |
static unsigned int | debuginfod_verbose = 1 |
using debuginfod_client_up = std::unique_ptr<debuginfod_client, debuginfod_client_deleter> |
Definition at line 109 of file debuginfod-support.c.
void _initialize_debuginfod | ( | ) |
Definition at line 484 of file debuginfod-support.c.
Referenced by initialize_all_files().
scoped_fd debuginfod_debuginfo_query | ( | const unsigned char * | build_id, |
int | build_id_len, | ||
const char * | filename, | ||
gdb::unique_xmalloc_ptr< char > * | destname | ||
) |
Definition at line 320 of file debuginfod-support.c.
References debuginfod_is_enabled(), get_debuginfod_client(), target_terminal::ours(), print_outcome(), and target_supports_terminal_ours().
Referenced by dwarf2_get_dwz_file(), and elf_symfile_read_dwarf2().
scoped_fd debuginfod_exec_query | ( | const unsigned char * | build_id, |
int | build_id_len, | ||
const char * | filename, | ||
gdb::unique_xmalloc_ptr< char > * | destname | ||
) |
Definition at line 358 of file debuginfod-support.c.
References debuginfod_is_enabled(), get_debuginfod_client(), target_terminal::ours(), print_outcome(), and target_supports_terminal_ours().
Referenced by core_target::build_file_mappings(), locate_exec_from_corefile_build_id(), and solib_map_sections().
|
static |
Definition at line 203 of file debuginfod-support.c.
References debuginfod_ask, debuginfod_enabled, debuginfod_off, debuginfod_on, file_name_style, gdb_printf(), nquery(), cli_style_option::style(), and styled_string().
Referenced by debuginfod_debuginfo_query(), debuginfod_exec_query(), and debuginfod_source_query().
scoped_fd debuginfod_source_query | ( | const unsigned char * | build_id, |
int | build_id_len, | ||
const char * | srcpath, | ||
gdb::unique_xmalloc_ptr< char > * | destname | ||
) |
Definition at line 279 of file debuginfod-support.c.
References debuginfod_is_enabled(), get_debuginfod_client(), target_terminal::ours(), print_outcome(), and target_supports_terminal_ours().
Referenced by open_source_file().
|
static |
Definition at line 184 of file debuginfod-support.c.
References progressfn().
Referenced by debuginfod_debuginfo_query(), debuginfod_exec_query(), and debuginfod_source_query().
|
static |
Definition at line 410 of file debuginfod-support.c.
References debuginfod_enabled.
|
static |
Definition at line 442 of file debuginfod-support.c.
|
static |
|
static |
Definition at line 264 of file debuginfod-support.c.
References current_uiout, file_name_style, gdb_printf(), cli_style_option::style(), and styled_string().
Referenced by debuginfod_debuginfo_query(), debuginfod_exec_query(), and debuginfod_source_query().
|
static |
Definition at line 140 of file debuginfod-support.c.
References string_file::c_str(), check_quit_flag(), current_uiout, debuginfod_verbose, file_name_style, fprintf_styled(), gdb_printf(), get_size_and_unit(), and cli_style_option::style().
Referenced by get_debuginfod_client().
|
static |
Definition at line 396 of file debuginfod-support.c.
References debuginfod_enabled, and debuginfod_off.
|
static |
Definition at line 429 of file debuginfod-support.c.
|
static |
Definition at line 418 of file debuginfod-support.c.
References debuginfod_enabled, and gdb_printf().
|
static |
Definition at line 460 of file debuginfod-support.c.
References gdb_printf().
|
static |
Definition at line 473 of file debuginfod-support.c.
References gdb_printf().
|
static |
Definition at line 36 of file debuginfod-support.c.
Referenced by debuginfod_is_enabled().
|
static |
Definition at line 46 of file debuginfod-support.c.
Referenced by debuginfod_is_enabled(), get_debuginfod_enabled(), set_debuginfod_enabled(), and show_debuginfod_enabled().
|
static |
Definition at line 38 of file debuginfod-support.c.
|
static |
Definition at line 35 of file debuginfod-support.c.
Referenced by debuginfod_is_enabled(), and set_debuginfod_enabled().
|
static |
Definition at line 34 of file debuginfod-support.c.
Referenced by debuginfod_is_enabled().
|
static |
Definition at line 53 of file debuginfod-support.c.
Referenced by progressfn().
|
static |
Definition at line 31 of file debuginfod-support.c.
|
static |
Definition at line 32 of file debuginfod-support.c.