GDB (xrefs)
|
#include "defs.h"
#include "observer.h"
#include "gdbcmd.h"
#include "target.h"
#include "ada-lang.h"
#include "gdbcore.h"
#include "inferior.h"
#include "gdbthread.h"
#include "progspace.h"
#include "objfiles.h"
Go to the source code of this file.
Classes | |
struct | atcb_fieldnos |
struct | ada_tasks_pspace_data |
struct | ada_tasks_inferior_data |
Macros | |
#define | KNOWN_TASKS_NAME "system__tasking__debug__known_tasks" |
#define | KNOWN_TASKS_LIST "system__tasking__debug__first_task" |
Typedefs | |
typedef struct ada_task_info | ada_task_info_s |
Variables | |
static const int | MAX_NUMBER_OF_KNOWN_TASKS = 1000 |
static const char * | task_states [] |
static const char * | long_task_states [] |
static const struct program_space_data * | ada_tasks_pspace_data_handle |
static const struct inferior_data * | ada_tasks_inferior_data_handle |
initialize_file_ftype | _initialize_tasks |
#define KNOWN_TASKS_LIST "system__tasking__debug__first_task" |
Definition at line 39 of file ada-tasks.c.
Referenced by ada_tasks_inferior_data_sniffer().
#define KNOWN_TASKS_NAME "system__tasking__debug__known_tasks" |
Definition at line 31 of file ada-tasks.c.
Referenced by ada_tasks_inferior_data_sniffer().
typedef struct ada_task_info ada_task_info_s |
Definition at line 163 of file ada-tasks.c.
enum ada_known_tasks_kind |
Enumerator | |
---|---|
ADA_TASKS_UNKNOWN | |
ADA_TASKS_NOT_FOUND | |
ADA_TASKS_ARRAY | |
ADA_TASKS_LIST |
Definition at line 169 of file ada-tasks.c.
enum task_states |
Definition at line 41 of file ada-tasks.c.
void _initialize_tasks | ( | void | ) |
Definition at line 1435 of file ada-tasks.c.
References _, ada_tasks_inferior_data_handle, ada_tasks_new_objfile_observer(), ada_tasks_normal_stop_observer(), ada_tasks_pspace_data_handle, add_cmd(), add_info(), class_run, cmdlist, info_tasks_command(), observer_attach_new_objfile(), observer_attach_normal_stop(), and task_command().
int ada_build_task_list | ( | void | ) |
Definition at line 981 of file ada-tasks.c.
References _, current_inferior(), error(), get_ada_tasks_inferior_data(), read_known_tasks(), target_has_stack, ada_tasks_inferior_data::task_list_valid_p, and VEC_length.
Referenced by info_task(), iterate_over_live_ada_tasks(), print_ada_task_info(), ravenscar_update_thread_list(), task_command(), and valid_task_id().
Definition at line 292 of file ada-tasks.c.
References find_inferior_ptid(), gdb_assert, get_ada_tasks_inferior_data(), ptid_equal(), VEC_index, and VEC_length.
Referenced by bpstat_check_breakpoint_conditions(), and display_current_task_id().
|
static |
Definition at line 348 of file ada-tasks.c.
References ada_task_info::state, and Terminated.
Referenced by iterate_over_live_ada_tasks(), read_atcb(), and task_command_1().
|
static |
Definition at line 1359 of file ada-tasks.c.
References get_ada_tasks_inferior_data(), and ada_tasks_inferior_data::task_list_valid_p.
Referenced by ada_tasks_normal_stop_observer().
|
static |
Definition at line 847 of file ada-tasks.c.
References ADA_TASKS_ARRAY, ADA_TASKS_LIST, ADA_TASKS_NOT_FOUND, ADA_TASKS_UNKNOWN, BMSYMBOL_VALUE_ADDRESS, builtin_type::builtin_data_ptr, builtin_type(), check_typedef(), ada_tasks_inferior_data::known_tasks_addr, ada_tasks_inferior_data::known_tasks_element, ada_tasks_inferior_data::known_tasks_kind, ada_tasks_inferior_data::known_tasks_length, KNOWN_TASKS_LIST, KNOWN_TASKS_NAME, language_c, lookup_minimal_symbol(), lookup_symbol_in_language(), MAX_NUMBER_OF_KNOWN_TASKS, bound_minimal_symbol::minsym, SYMBOL_TYPE, SYMBOL_VALUE_ADDRESS, target_gdbarch(), type, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_PTR, TYPE_HIGH_BOUND, TYPE_HIGH_BOUND_UNDEFINED, TYPE_INDEX_TYPE, TYPE_LOW_BOUND, TYPE_LOW_BOUND_UNDEFINED, TYPE_TARGET_TYPE, and VAR_DOMAIN.
Referenced by read_known_tasks().
|
static |
Definition at line 1377 of file ada-tasks.c.
References ADA_TASKS_UNKNOWN, get_ada_tasks_inferior_data(), ada_tasks_inferior_data::known_tasks_kind, and ada_tasks_inferior_data::task_list_valid_p.
Referenced by ada_tasks_new_objfile_observer().
|
static |
Definition at line 1369 of file ada-tasks.c.
References get_ada_tasks_pspace_data(), and ada_tasks_pspace_data::initialized_p.
Referenced by ada_tasks_new_objfile_observer().
|
static |
Definition at line 1398 of file ada-tasks.c.
References ada_tasks_invalidate_inferior_data(), ada_tasks_invalidate_pspace_data(), arm-linux::inf, inferior_list, program_space::next, inferior::next, program_spaces, objfile::pspace, and inferior::pspace.
Referenced by _initialize_tasks().
|
static |
Definition at line 1388 of file ada-tasks.c.
References ada_task_list_changed(), and current_inferior().
Referenced by _initialize_tasks().
Definition at line 769 of file ada-tasks.c.
References get_ada_tasks_inferior_data(), read_atcb(), and VEC_safe_push.
Referenced by read_known_tasks_array(), and read_known_tasks_list().
DEF_VEC_O | ( | ada_task_info_s | ) |
|
static |
Definition at line 1259 of file ada-tasks.c.
References _, ada_get_task_number(), inferior_ptid, and printf_filtered().
Referenced by task_command().
|
static |
Definition at line 274 of file ada-tasks.c.
References ada_tasks_inferior_data_handle.
Referenced by ada_build_task_list(), ada_get_task_number(), ada_task_list_changed(), ada_tasks_invalidate_inferior_data(), add_ada_task(), get_task_number_from_id(), info_task(), iterate_over_live_ada_tasks(), print_ada_task_info(), read_known_tasks(), task_command_1(), and valid_task_id().
|
static |
Definition at line 247 of file ada-tasks.c.
References ada_tasks_pspace_data_handle.
Referenced by ada_tasks_invalidate_pspace_data(), get_tcb_types_info(), ptid_from_atcb_common(), read_atcb(), and read_known_tasks_list().
Definition at line 313 of file ada-tasks.c.
References get_ada_tasks_inferior_data(), ada_task_info::task_id, VEC_index, and VEC_length.
Referenced by info_task(), and print_ada_task_info().
|
static |
Definition at line 453 of file ada-tasks.c.
References _, atcb_fieldnos::activation_link, ada_get_field_index(), ada_template_to_fixed_record_type_1(), atcb_fieldnos::atc_nesting_level, ada_tasks_pspace_data::atcb_call_type, ada_tasks_pspace_data::atcb_common_type, ada_tasks_pspace_data::atcb_fieldno, ada_tasks_pspace_data::atcb_ll_type, ada_tasks_pspace_data::atcb_type, atcb_fieldnos::call, atcb_fieldnos::call_self, atcb_fieldnos::common, current_program_space, atcb_fieldnos::entry_calls, error(), get_ada_tasks_pspace_data(), atcb_fieldnos::image, atcb_fieldnos::image_len, ada_tasks_pspace_data::initialized_p, language_c, atcb_fieldnos::ll, atcb_fieldnos::ll_lwp, atcb_fieldnos::ll_thread, lookup_symbol_in_language(), atcb_fieldnos::parent, atcb_fieldnos::priority, atcb_fieldnos::state, STRUCT_DOMAIN, type, and symbol::type.
Referenced by read_atcb().
Definition at line 1154 of file ada-tasks.c.
References _, ada_build_task_list(), ada_task_info::called_task, ada_task_info::caller_task, Entry_Caller_Sleep, error(), get_ada_tasks_inferior_data(), get_task_number_from_id(), long_task_states, ada_task_info::name, paddress(), ada_task_info::parent, parse_and_eval(), printf_filtered(), ada_task_info::priority, ada_task_info::ptid, ptid_get_lwp(), ptid_get_tid(), ada_task_info::state, target_gdbarch(), ada_task_info::task_id, ui_out_message(), value_as_long(), VEC_index, and VEC_length.
Referenced by info_tasks_command().
|
static |
Definition at line 1245 of file ada-tasks.c.
References current_inferior(), current_uiout, info_task(), and print_ada_task_info().
Referenced by _initialize_tasks().
void iterate_over_live_ada_tasks | ( | ada_task_list_iterator_ftype * | iterator | ) |
Definition at line 357 of file ada-tasks.c.
References ada_build_task_list(), ada_task_is_alive(), current_inferior(), get_ada_tasks_inferior_data(), VEC_index, and VEC_length.
Referenced by ravenscar_update_thread_list().
Definition at line 1001 of file ada-tasks.c.
References _, ada_build_task_list(), ada_task_info::called_task, ada_task_info::caller_task, do_cleanups(), Entry_Caller_Sleep, gdb_assert, get_ada_tasks_inferior_data(), get_task_number_from_id(), inferior_ptid, make_cleanup_ui_out_table_begin_end(), make_cleanup_ui_out_tuple_begin_end(), ada_task_info::name, ada_task_info::parent, parse_and_eval(), pid_to_thread_id(), ada_task_info::priority, ada_task_info::ptid, ptid_equal(), ada_task_info::state, target_update_thread_list(), ada_task_info::task_id, ui_left, ui_noalign, ui_out_field_fmt(), ui_out_field_int(), ui_out_field_skip(), ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_message(), ui_out_table_body(), ui_out_table_header(), ui_out_text(), ui_right, value_as_long(), VEC_index, and VEC_length.
Referenced by info_tasks_command(), and mi_cmd_ada_task_info().
Definition at line 564 of file ada-tasks.c.
References ada_tasks_pspace_data::atcb_fieldno, current_program_space, get_ada_tasks_pspace_data(), atcb_fieldnos::ll, atcb_fieldnos::ll_lwp, atcb_fieldnos::ll_thread, target_get_ada_task_ptid, value_as_address(), value_as_long(), and value_field().
Referenced by read_atcb().
|
static |
Definition at line 591 of file ada-tasks.c.
References ada_coerce_to_simple_array_ptr(), ada_get_field_index(), ada_task_is_alive(), atcb_fieldnos::atc_nesting_level, ada_tasks_pspace_data::atcb_call_type, ada_tasks_pspace_data::atcb_fieldno, ada_tasks_pspace_data::atcb_type, atcb_fieldnos::call, atcb_fieldnos::call_self, ada_task_info::called_task, ada_task_info::caller_task, atcb_fieldnos::common, current_program_space, atcb_fieldnos::entry_calls, get_ada_tasks_pspace_data(), get_tcb_types_info(), atcb_fieldnos::image, atcb_fieldnos::image_len, ada_tasks_pspace_data::initialized_p, len, lookup_minimal_symbol_by_pc(), MSYMBOL_LINKAGE_NAME, ada_task_info::name, null_ptid, atcb_fieldnos::parent, ada_task_info::parent, atcb_fieldnos::priority, ada_task_info::priority, ada_task_info::ptid, ptid_from_atcb_common(), read_fat_string_value(), atcb_fieldnos::state, ada_task_info::state, target_has_execution, ada_task_info::task_id, value_as_address(), value_as_long(), value_as_string(), value_field(), value_from_contents_and_address(), value_subscript(), and value_type().
Referenced by add_ada_task().
Definition at line 392 of file ada-tasks.c.
References _, ada_get_field_index(), error(), len, read_memory(), TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_STRUCT, TYPE_FIELD_TYPE, TYPE_TARGET_TYPE, value_address(), value_as_long(), value_field(), value_ind(), and value_type().
Referenced by read_atcb().
|
static |
Definition at line 942 of file ada-tasks.c.
References ADA_TASKS_ARRAY, ada_tasks_inferior_data_sniffer(), ADA_TASKS_LIST, ADA_TASKS_NOT_FOUND, ADA_TASKS_UNKNOWN, current_inferior(), gdb_assert, get_ada_tasks_inferior_data(), ada_tasks_inferior_data::known_tasks_kind, read_known_tasks_array(), read_known_tasks_list(), ada_tasks_inferior_data::task_list_valid_p, and VEC_truncate.
Referenced by ada_build_task_list().
|
static |
Definition at line 782 of file ada-tasks.c.
References add_ada_task(), current_inferior(), extract_typed_address(), ada_tasks_inferior_data::known_tasks_addr, ada_tasks_inferior_data::known_tasks_element, ada_tasks_inferior_data::known_tasks_length, read_memory(), and TYPE_LENGTH.
Referenced by read_known_tasks().
|
static |
Definition at line 809 of file ada-tasks.c.
References atcb_fieldnos::activation_link, add_ada_task(), ada_tasks_pspace_data::atcb_fieldno, ada_tasks_pspace_data::atcb_type, atcb_fieldnos::common, current_inferior(), current_program_space, extract_typed_address(), get_ada_tasks_pspace_data(), ada_tasks_inferior_data::known_tasks_addr, ada_tasks_inferior_data::known_tasks_element, read_memory(), TYPE_LENGTH, value_as_address(), value_field(), and value_from_contents_and_address().
Referenced by read_known_tasks().
|
static |
Definition at line 1322 of file ada-tasks.c.
References _, ada_build_task_list(), current_inferior(), current_uiout, display_current_task_id(), error(), target_has_execution, task_command_1(), and ui_out_message().
Referenced by _initialize_tasks().
Definition at line 1273 of file ada-tasks.c.
References _, ada_find_printable_frame(), ada_task_is_alive(), error(), find_thread_ptid(), frame_relative_level(), get_ada_tasks_inferior_data(), get_selected_frame(), parse_and_eval(), print_stack_frame(), printf_filtered(), ada_task_info::ptid, SRC_AND_LOC, switch_to_thread(), target_update_thread_list(), value_as_long(), VEC_index, and VEC_length.
Referenced by task_command().
Definition at line 334 of file ada-tasks.c.
References ada_build_task_list(), current_inferior(), get_ada_tasks_inferior_data(), and VEC_length.
Referenced by bppy_set_task(), find_condition_and_thread(), and gdbscm_set_breakpoint_task_x().
initialize_file_ftype _initialize_tasks |
|
static |
Definition at line 239 of file ada-tasks.c.
Referenced by _initialize_tasks(), and get_ada_tasks_inferior_data().
|
static |
Definition at line 161 of file ada-tasks.c.
Referenced by _initialize_tasks(), and get_ada_tasks_pspace_data().
|
static |
Definition at line 86 of file ada-tasks.c.
Referenced by info_task().
Definition at line 34 of file ada-tasks.c.
Referenced by ada_tasks_inferior_data_sniffer().
|
static |
Definition at line 64 of file ada-tasks.c.