GDB (xrefs)
Namespaces | Classes | Typedefs | Functions | Variables
gdb Namespace Reference

Namespaces

 command
 
 FrameDecorator
 
 FrameIterator
 
 frames
 
 function
 
 fv_detail
 
 printer
 
 printing
 
 prompt
 
 types
 
 unwinder
 
 xmethod
 

Classes

class  _GdbFile
 
struct  And
 
struct  And< B1 >
 
struct  And< B1, B2 >
 
struct  And< B1, B2, B3, Bn... >
 
struct  And<>
 
class  array_view
 
class  default_init_allocator
 
struct  function_view
 
class  function_view< Res(Args...)>
 
class  GdbOutputErrorFile
 
class  GdbOutputFile
 
struct  hash_enum
 
struct  in_place_t
 
struct  make_void
 
struct  Not
 
class  optional
 
struct  Or
 
struct  Or< B1 >
 
struct  Or< B1, B2 >
 
struct  Or< B1, B2, B3, Bn... >
 
struct  Or<>
 
class  ref_ptr
 
struct  splay_tree_deleter
 
class  unlinker
 
struct  xfree_deleter
 
struct  xfree_deleter< T[]>
 

Typedefs

using byte_vector = gdb::def_vector< gdb_byte >
 
template<typename T >
using def_vector = std::vector< T, gdb::default_init_allocator< T > >
 
template<typename T >
using unique_xmalloc_ptr = std::unique_ptr< T, xfree_deleter< T > >
 
template<typename... Ts>
using void_t = typename make_void< Ts... >::type
 
template<typename Condition >
using Requires = typename std::enable_if< Condition::value, void >::type
 

Functions

template<typename Res , typename... Args>
constexpr bool operator== (const function_view< Res(Args...)> &f, std::nullptr_t) noexcept
 
template<typename Res , typename... Args>
constexpr bool operator== (std::nullptr_t, const function_view< Res(Args...)> &f) noexcept
 
template<typename Res , typename... Args>
constexpr bool operator!= (const function_view< Res(Args...)> &f, std::nullptr_t) noexcept
 
template<typename Res , typename... Args>
constexpr bool operator!= (std::nullptr_t, const function_view< Res(Args...)> &f) noexcept
 
template<typename T , typename Policy >
bool operator== (const ref_ptr< T, Policy > &lhs, const ref_ptr< T, Policy > &rhs)
 
template<typename T , typename Policy >
bool operator== (const ref_ptr< T, Policy > &lhs, const T *rhs)
 
template<typename T , typename Policy >
bool operator== (const ref_ptr< T, Policy > &lhs, const std::nullptr_t)
 
template<typename T , typename Policy >
bool operator== (const T *lhs, const ref_ptr< T, Policy > &rhs)
 
template<typename T , typename Policy >
bool operator== (const std::nullptr_t, const ref_ptr< T, Policy > &rhs)
 
template<typename T , typename Policy >
bool operator!= (const ref_ptr< T, Policy > &lhs, const ref_ptr< T, Policy > &rhs)
 
template<typename T , typename Policy >
bool operator!= (const ref_ptr< T, Policy > &lhs, const T *rhs)
 
template<typename T , typename Policy >
bool operator!= (const ref_ptr< T, Policy > &lhs, const std::nullptr_t)
 
template<typename T , typename Policy >
bool operator!= (const T *lhs, const ref_ptr< T, Policy > &rhs)
 
template<typename T , typename Policy >
bool operator!= (const std::nullptr_t, const ref_ptr< T, Policy > &rhs)
 
def execute_unwinders (pending_frame)
 
def auto_load_packages ()
 
def GdbSetPythonDirectory (dir)
 

Variables

constexpr gdb::in_place_t in_place {}
 
 prompt_hook
 
 argv
 
 pretty_printers
 
 type_printers
 
 xmethods
 
 frame_filters
 
 frame_unwinders
 
 PYTHONDIR
 
 packages
 

Typedef Documentation

◆ byte_vector

Definition at line 58 of file byte-vector.h.

◆ def_vector

template<typename T >
using gdb::def_vector = typedef std::vector<T, gdb::default_init_allocator<T> >

Definition at line 32 of file def-vector.h.

◆ Requires

template<typename Condition >
using gdb::Requires = typedef typename std::enable_if<Condition::value, void>::type

Definition at line 98 of file traits.h.

◆ unique_xmalloc_ptr

template<typename T >
using gdb::unique_xmalloc_ptr = typedef std::unique_ptr<T, xfree_deleter<T> >

Definition at line 48 of file gdb_unique_ptr.h.

◆ void_t

template<typename... Ts>
using gdb::void_t = typedef typename make_void<Ts...>::type

Definition at line 45 of file traits.h.

Function Documentation

◆ auto_load_packages()

def gdb.auto_load_packages ( )

Definition at line 128 of file __init__.py.

Referenced by GdbSetPythonDirectory(), and gdb.GdbOutputErrorFile.write().

◆ execute_unwinders()

def gdb.execute_unwinders (   pending_frame)
Internal function called from GDB to execute all unwinders.

Runs each currently enabled unwinder until it finds the one that
can unwind given frame.

Arguments:
    pending_frame: gdb.PendingFrame instance.
Returns:
    gdb.UnwindInfo instance or None.

Definition at line 77 of file __init__.py.

Referenced by gdb.GdbOutputErrorFile.write().

◆ GdbSetPythonDirectory()

def gdb.GdbSetPythonDirectory (   dir)
Update sys.path, reload gdb and auto-load packages.

Definition at line 150 of file __init__.py.

References auto_load_packages().

Referenced by gdb.GdbOutputErrorFile.write().

◆ operator!=() [1/7]

template<typename T , typename Policy >
bool gdb::operator!= ( const ref_ptr< T, Policy > &  lhs,
const ref_ptr< T, Policy > &  rhs 
)
inline

Definition at line 189 of file gdb_ref_ptr.h.

References gdb::ref_ptr< T, Policy >::get().

◆ operator!=() [2/7]

template<typename T , typename Policy >
bool gdb::operator!= ( const ref_ptr< T, Policy > &  lhs,
const T *  rhs 
)
inline

Definition at line 196 of file gdb_ref_ptr.h.

References gdb::ref_ptr< T, Policy >::get().

◆ operator!=() [3/7]

template<typename T , typename Policy >
bool gdb::operator!= ( const ref_ptr< T, Policy > &  lhs,
const std::nullptr_t   
)
inline

Definition at line 202 of file gdb_ref_ptr.h.

References gdb::ref_ptr< T, Policy >::get().

◆ operator!=() [4/7]

template<typename T , typename Policy >
bool gdb::operator!= ( const T *  lhs,
const ref_ptr< T, Policy > &  rhs 
)
inline

Definition at line 208 of file gdb_ref_ptr.h.

References gdb::ref_ptr< T, Policy >::get().

◆ operator!=() [5/7]

template<typename T , typename Policy >
bool gdb::operator!= ( const std::nullptr_t  ,
const ref_ptr< T, Policy > &  rhs 
)
inline

Definition at line 214 of file gdb_ref_ptr.h.

References gdb::ref_ptr< T, Policy >::get().

◆ operator!=() [6/7]

template<typename Res , typename... Args>
constexpr bool gdb::operator!= ( const function_view< Res(Args...)> &  f,
std::nullptr_t   
)
inlinenoexcept

Definition at line 313 of file function-view.h.

◆ operator!=() [7/7]

template<typename Res , typename... Args>
constexpr bool gdb::operator!= ( std::nullptr_t  ,
const function_view< Res(Args...)> &  f 
)
inlinenoexcept

Definition at line 318 of file function-view.h.

◆ operator==() [1/7]

template<typename T , typename Policy >
bool gdb::operator== ( const ref_ptr< T, Policy > &  lhs,
const ref_ptr< T, Policy > &  rhs 
)
inline

Definition at line 158 of file gdb_ref_ptr.h.

References gdb::ref_ptr< T, Policy >::get().

◆ operator==() [2/7]

template<typename T , typename Policy >
bool gdb::operator== ( const ref_ptr< T, Policy > &  lhs,
const T *  rhs 
)
inline

Definition at line 165 of file gdb_ref_ptr.h.

References gdb::ref_ptr< T, Policy >::get().

◆ operator==() [3/7]

template<typename T , typename Policy >
bool gdb::operator== ( const ref_ptr< T, Policy > &  lhs,
const std::nullptr_t   
)
inline

Definition at line 171 of file gdb_ref_ptr.h.

References gdb::ref_ptr< T, Policy >::get().

◆ operator==() [4/7]

template<typename T , typename Policy >
bool gdb::operator== ( const T *  lhs,
const ref_ptr< T, Policy > &  rhs 
)
inline

Definition at line 177 of file gdb_ref_ptr.h.

References gdb::ref_ptr< T, Policy >::get().

◆ operator==() [5/7]

template<typename T , typename Policy >
bool gdb::operator== ( const std::nullptr_t  ,
const ref_ptr< T, Policy > &  rhs 
)
inline

Definition at line 183 of file gdb_ref_ptr.h.

References gdb::ref_ptr< T, Policy >::get().

◆ operator==() [6/7]

template<typename Res , typename... Args>
constexpr bool gdb::operator== ( const function_view< Res(Args...)> &  f,
std::nullptr_t   
)
inlinenoexcept

Definition at line 303 of file function-view.h.

◆ operator==() [7/7]

template<typename Res , typename... Args>
constexpr bool gdb::operator== ( std::nullptr_t  ,
const function_view< Res(Args...)> &  f 
)
inlinenoexcept

Definition at line 308 of file function-view.h.

Variable Documentation

◆ argv

gdb.argv

Definition at line 63 of file __init__.py.

Referenced by add_inferior_command(), add_path(), add_symbol_file_command(), append_args(), argv_to_string(), backtrace_command(), breakup_args(), call_internal_function(), call_xmethod(), captured_main_1(), captured_mi_execute_command(), check_for_redefinition(), clone_inferior_command(), compile_to_object(), construct_inferior_arguments(), convert_values_to_python(), darwin_execvp(), delete_trace_variable_command(), exec_file_command(), exec_reverse_continue(), expand(), extended_remote_run(), filter_args(), find_parameter(), fnpy_call(), fork_inferior(), gdbscm_gc_dup_argv(), gdbsim_load(), gdbsim_open(), generic_load(), get_inferior_args(), inferior_call_waitpid(), isvoid_internal_fn(), macro_define_command(), macro_define_function(), main(), maintenance_expand_symtabs(), maintenance_print_msymbols(), maintenance_print_psymbols(), maintenance_print_symbols(), mep_push_dummy_call(), mi_argv_to_format(), mi_catch_load_unload(), mi_cmd_ada_task_info(), mi_cmd_break_commands(), mi_cmd_break_insert(), mi_cmd_break_insert_1(), mi_cmd_break_passcount(), mi_cmd_break_watch(), mi_cmd_catch_assert(), mi_cmd_catch_exception(), mi_cmd_catch_load(), mi_cmd_catch_unload(), mi_cmd_data_evaluate_expression(), mi_cmd_data_list_changed_registers(), mi_cmd_data_list_register_names(), mi_cmd_data_list_register_values(), mi_cmd_data_read_memory(), mi_cmd_data_read_memory_bytes(), mi_cmd_data_write_memory(), mi_cmd_data_write_memory_bytes(), mi_cmd_data_write_register_values(), mi_cmd_disassemble(), mi_cmd_dprintf_insert(), mi_cmd_enable_timings(), mi_cmd_env_cd(), mi_cmd_env_dir(), mi_cmd_env_path(), mi_cmd_exec_continue(), mi_cmd_exec_finish(), mi_cmd_exec_jump(), mi_cmd_exec_next(), mi_cmd_exec_next_instruction(), mi_cmd_exec_return(), mi_cmd_exec_run(), mi_cmd_exec_step(), mi_cmd_exec_step_instruction(), mi_cmd_file_list_exec_source_file(), mi_cmd_file_list_exec_source_files(), mi_cmd_file_list_shared_libraries(), mi_cmd_inferior_tty_set(), mi_cmd_inferior_tty_show(), mi_cmd_info_ada_exceptions(), mi_cmd_info_gdb_mi_command(), mi_cmd_info_os(), mi_cmd_interpreter_exec(), mi_cmd_list_thread_groups(), mi_cmd_remove_inferior(), mi_cmd_stack_info_depth(), mi_cmd_stack_list_args(), mi_cmd_stack_list_frames(), mi_cmd_stack_list_locals(), mi_cmd_stack_list_variables(), mi_cmd_stack_select_frame(), mi_cmd_symbol_list_lines(), mi_cmd_target_detach(), mi_cmd_target_file_delete(), mi_cmd_target_file_get(), mi_cmd_target_file_put(), mi_cmd_thread_info(), mi_cmd_thread_select(), mi_cmd_trace_define_variable(), mi_cmd_trace_find(), mi_cmd_trace_frame_collected(), mi_cmd_trace_save(), mi_cmd_var_assign(), mi_cmd_var_create(), mi_cmd_var_delete(), mi_cmd_var_evaluate_expression(), mi_cmd_var_info_expression(), mi_cmd_var_info_num_children(), mi_cmd_var_info_path_expression(), mi_cmd_var_info_type(), mi_cmd_var_list_children(), mi_cmd_var_set_format(), mi_cmd_var_set_frozen(), mi_cmd_var_set_update_range(), mi_cmd_var_set_visualizer(), mi_cmd_var_show_attributes(), mi_cmd_var_show_format(), mi_cmd_var_update(), mi_execute_async_cli_command(), mi_getopt(), mi_getopt_1(), mi_getopt_allow_unknown(), mi_parse_argv(), mi_valid_noargs(), new_macro_definition(), new_ui_command(), nto_parse_redirection(), parse_macro_definition(), pipe_windows_open(), procfs_create_inferior(), push_large_arguments(), remote_delete_command(), remote_get_command(), remote_put_command(), remove_symbol_file_command(), gdb_argv.reset(), result_type_of_xmethod(), set_inferior_args_vector(), set_substitute_path_command(), show_substitute_path_command(), skip_command(), substitute_args(), tsave_command(), and unset_substitute_path_command().

◆ frame_filters

gdb.frame_filters

Definition at line 73 of file __init__.py.

◆ frame_unwinders

gdb.frame_unwinders

Definition at line 75 of file __init__.py.

◆ in_place

constexpr gdb::in_place_t gdb::in_place {}

◆ packages

gdb.packages

Definition at line 118 of file __init__.py.

◆ pretty_printers

gdb.pretty_printers

Definition at line 66 of file __init__.py.

◆ prompt_hook

gdb.prompt_hook

Definition at line 59 of file __init__.py.

◆ PYTHONDIR

gdb.PYTHONDIR

Definition at line 112 of file __init__.py.

◆ type_printers

gdb.type_printers

Definition at line 69 of file __init__.py.

◆ xmethods

gdb.xmethods

Definition at line 71 of file __init__.py.