GDB (xrefs)
|
#include "defs.h"
#include "gdbcore.h"
#include "gdbthread.h"
#include "ada-lang.h"
#include "target.h"
#include "inferior.h"
#include "command.h"
#include "ravenscar-thread.h"
#include "observer.h"
#include "gdbcmd.h"
#include "top.h"
#include "regcache.h"
#include "objfiles.h"
Go to the source code of this file.
Variables | |
static int | ravenscar_task_support = 1 |
static struct target_ops | ravenscar_ops |
static ptid_t | base_magic_null_ptid |
static ptid_t | base_ptid |
static const char | running_thread_name [] = "__gnat_running_thread_table" |
static const char | known_tasks_name [] = "system__tasking__debug__known_tasks" |
static const char | first_task_name [] = "system__tasking__debug__first_task" |
static const char | ravenscar_runtime_initializer [] |
static struct cmd_list_element * | set_ravenscar_list |
static struct cmd_list_element * | show_ravenscar_list |
void _initialize_ravenscar | ( | void | ) |
Definition at line 429 of file ravenscar-thread.c.
References _, add_prefix_cmd(), add_setshow_boolean_cmd(), class_obscure, complete_target_initialization(), init_ravenscar_thread_ops(), no_class, null_ptid, observer_attach_inferior_created(), ravenscar_inferior_created(), ravenscar_ops, ravenscar_task_support, set_ravenscar_command(), setlist, show_ravenscar_command(), show_ravenscar_task_switching_command(), and showlist.
|
static |
Definition at line 154 of file ravenscar-thread.c.
References BMSYMBOL_VALUE_ADDRESS, builtin_type::builtin_data_ptr, builtin_type(), extract_typed_address(), get_running_thread_msymbol(), bound_minimal_symbol::minsym, read_memory(), target_gdbarch(), and TYPE_LENGTH.
Referenced by ravenscar_running_thread().
|
static |
Definition at line 106 of file ravenscar-thread.c.
References lookup_minimal_symbol(), and running_thread_name.
Referenced by get_running_thread_id(), and has_ravenscar_runtime().
|
static |
Definition at line 125 of file ravenscar-thread.c.
References first_task_name, get_running_thread_msymbol(), known_tasks_name, lookup_minimal_symbol(), bound_minimal_symbol::minsym, and ravenscar_runtime_initializer.
Referenced by ravenscar_inferior_created().
|
static |
Definition at line 360 of file ravenscar-thread.c.
References default_child_has_all_memory(), default_child_has_execution(), default_child_has_memory(), default_child_has_registers(), default_child_has_stack(), OPS_MAGIC, ravenscar_extra_thread_info(), ravenscar_fetch_registers(), ravenscar_get_ada_task_ptid(), ravenscar_mourn_inferior(), ravenscar_ops, ravenscar_pid_to_str(), ravenscar_prepare_to_store(), ravenscar_resume(), ravenscar_store_registers(), ravenscar_thread_alive(), ravenscar_update_thread_list(), ravenscar_wait(), thread_stratum, target_ops::to_doc, target_ops::to_extra_thread_info, target_ops::to_fetch_registers, target_ops::to_get_ada_task_ptid, target_ops::to_has_all_memory, target_ops::to_has_execution, target_ops::to_has_memory, target_ops::to_has_registers, target_ops::to_has_stack, target_ops::to_longname, target_ops::to_magic, target_ops::to_mourn_inferior, target_ops::to_pid_to_str, target_ops::to_prepare_to_store, target_ops::to_resume, target_ops::to_shortname, target_ops::to_store_registers, target_ops::to_stratum, target_ops::to_thread_alive, target_ops::to_update_thread_list, and target_ops::to_wait.
Referenced by _initialize_ravenscar().
|
static |
Definition at line 214 of file ravenscar-thread.c.
References add_thread(), find_thread_ptid(), and ada_task_info::ptid.
Referenced by ravenscar_update_thread_list().
|
static |
Definition at line 245 of file ravenscar-thread.c.
Referenced by init_ravenscar_thread_ops().
|
static |
Definition at line 267 of file ravenscar-thread.c.
References target_ops::beneath, find_target_beneath(), gdbarch_ravenscar_ops(), get_regcache_arch(), inferior_ptid, ptid_equal(), ravenscar_running_thread(), ravenscar_runtime_initialized(), ravenscar_arch_ops::to_fetch_registers, and target_ops::to_fetch_registers.
Referenced by init_ravenscar_thread_ops().
|
static |
Definition at line 354 of file ravenscar-thread.c.
References ptid_build(), and ptid_get_pid().
Referenced by init_ravenscar_thread_ops().
|
static |
Definition at line 339 of file ravenscar-thread.c.
References current_inferior(), gdbarch_ravenscar_ops(), has_ravenscar_runtime(), inferior_ptid, push_target(), ravenscar_ops, ravenscar_task_support, and ravenscar_update_inferior_ptid().
Referenced by _initialize_ravenscar().
|
static |
Definition at line 327 of file ravenscar-thread.c.
References target_ops::beneath, find_target_beneath(), null_ptid, ravenscar_ops, target_ops::to_mourn_inferior, and unpush_target().
Referenced by init_ravenscar_thread_ops().
|
static |
Definition at line 258 of file ravenscar-thread.c.
References ptid_get_tid().
Referenced by init_ravenscar_thread_ops().
|
static |
Definition at line 307 of file ravenscar-thread.c.
References target_ops::beneath, find_target_beneath(), gdbarch_ravenscar_ops(), get_regcache_arch(), inferior_ptid, ptid_equal(), ravenscar_running_thread(), ravenscar_runtime_initialized(), ravenscar_arch_ops::to_prepare_to_store, and target_ops::to_prepare_to_store.
Referenced by init_ravenscar_thread_ops().
|
static |
Definition at line 176 of file ravenscar-thread.c.
References base_ptid, target_ops::beneath, find_target_beneath(), inferior_ptid, and target_ops::to_resume.
Referenced by init_ravenscar_thread_ops().
|
static |
Definition at line 234 of file ravenscar-thread.c.
References get_running_thread_id(), null_ptid, ptid_build(), and ptid_get_pid().
Referenced by ravenscar_fetch_registers(), ravenscar_prepare_to_store(), ravenscar_runtime_initialized(), ravenscar_store_registers(), and ravenscar_update_inferior_ptid().
|
static |
Definition at line 145 of file ravenscar-thread.c.
References null_ptid, ptid_equal(), and ravenscar_running_thread().
Referenced by ravenscar_fetch_registers(), ravenscar_prepare_to_store(), ravenscar_store_registers(), and ravenscar_update_inferior_ptid().
|
static |
Definition at line 287 of file ravenscar-thread.c.
References target_ops::beneath, find_target_beneath(), gdbarch_ravenscar_ops(), get_regcache_arch(), inferior_ptid, ptid_equal(), ravenscar_running_thread(), ravenscar_runtime_initialized(), ravenscar_arch_ops::to_store_registers, and target_ops::to_store_registers.
Referenced by init_ravenscar_thread_ops().
|
static |
Definition at line 251 of file ravenscar-thread.c.
Referenced by init_ravenscar_thread_ops().
|
static |
Definition at line 79 of file ravenscar-thread.c.
References add_thread(), find_thread_ptid(), gdb_assert, inferior_ptid, null_ptid, ptid_equal(), ravenscar_running_thread(), and ravenscar_runtime_initialized().
Referenced by ravenscar_inferior_created(), and ravenscar_wait().
|
static |
Definition at line 221 of file ravenscar-thread.c.
References ada_build_task_list(), iterate_over_live_ada_tasks(), and ravenscar_add_thread().
Referenced by init_ravenscar_thread_ops(), and ravenscar_wait().
|
static |
Definition at line 186 of file ravenscar-thread.c.
References base_ptid, target_ops::beneath, find_target_beneath(), inferior_ptid, target_waitstatus::kind, ravenscar_update_inferior_ptid(), ravenscar_update_thread_list(), TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED, and target_ops::to_wait.
Referenced by init_ravenscar_thread_ops().
|
static |
Definition at line 392 of file ravenscar-thread.c.
References _, all_commands, gdb_stdout, help_list(), and printf_unfiltered().
Referenced by _initialize_ravenscar().
|
static |
Definition at line 402 of file ravenscar-thread.c.
References cmd_show_list().
Referenced by _initialize_ravenscar().
|
static |
Definition at line 410 of file ravenscar-thread.c.
References _, fprintf_filtered(), and ravenscar_task_support.
Referenced by _initialize_ravenscar().
|
static |
Definition at line 42 of file ravenscar-thread.c.
|
static |
Definition at line 45 of file ravenscar-thread.c.
Referenced by ravenscar_resume(), and ravenscar_wait().
|
static |
Definition at line 50 of file ravenscar-thread.c.
Referenced by has_ravenscar_runtime().
|
static |
Definition at line 49 of file ravenscar-thread.c.
Referenced by has_ravenscar_runtime().
|
static |
Definition at line 38 of file ravenscar-thread.c.
Referenced by _initialize_ravenscar(), init_ravenscar_thread_ops(), ravenscar_inferior_created(), ravenscar_mourn_inferior(), and set_gdbarch_ravenscar_ops().
|
static |
Definition at line 52 of file ravenscar-thread.c.
Referenced by has_ravenscar_runtime().
|
static |
Definition at line 35 of file ravenscar-thread.c.
Referenced by _initialize_ravenscar(), ravenscar_inferior_created(), and show_ravenscar_task_switching_command().
|
static |
Definition at line 47 of file ravenscar-thread.c.
Referenced by get_running_thread_msymbol().
|
static |
Definition at line 386 of file ravenscar-thread.c.
|
static |
Definition at line 387 of file ravenscar-thread.c.