GDB (xrefs)
|
#include "defs.h"
#include "symtab.h"
#include "frame.h"
#include "inferior.h"
#include "environ.h"
#include "value.h"
#include "target.h"
#include "gdbthread.h"
#include "command.h"
#include "gdbcmd.h"
#include "regcache.h"
#include "gdb.h"
#include "btrace.h"
#include <ctype.h>
#include <sys/types.h>
#include <signal.h>
#include "ui-out.h"
#include "observer.h"
#include "annotate.h"
#include "cli/cli-decode.h"
#include "gdb_regex.h"
#include "cli/cli-utils.h"
#include "continuations.h"
Go to the source code of this file.
Classes | |
struct | thread_array_cleanup |
struct | current_thread_cleanup |
Variables | |
struct thread_info * | thread_list = NULL |
static int | highest_thread_num |
static int | threads_executing |
static int | tp_array_compar_ascending |
int | print_thread_events = 1 |
struct cmd_list_element * | thread_cmd_list = NULL |
static const struct internalvar_funcs | thread_funcs |
void _initialize_thread | ( | void | ) |
Definition at line 1767 of file thread.c.
References _, add_cmd(), add_com_alias(), add_info(), add_prefix_cmd(), add_setshow_boolean_cmd(), class_run, cmdlist, create_internalvar_type_lazy(), info_threads_command(), no_class, setprintlist, show_print_thread_events(), showprintlist, thread_apply_all_command(), thread_apply_command(), thread_command(), thread_find_command(), and thread_name_command().
struct thread_info* add_thread | ( | ptid_t | ptid | ) |
Definition at line 305 of file thread.c.
References add_thread_with_info().
Referenced by add_to_thread_list(), bsd_uthread_update_thread_list(), bsd_uthread_wait(), do_attach(), follow_fork_inferior(), handle_inferior_event_1(), inf_validate_procs(), linux_handle_extended_wait(), linux_nat_filter_event(), procfs_notice_thread(), procfs_update_thread_list(), procfs_wait(), ravenscar_add_thread(), ravenscar_update_inferior_ptid(), remote_add_thread(), sol_thread_wait(), sol_update_thread_list_callback(), sync_threadlists(), and windows_add_thread().
struct thread_info* add_thread_silent | ( | ptid_t | ptid | ) |
Definition at line 240 of file thread.c.
References delete_thread(), find_thread_ptid(), inferior_ptid, new_thread(), null_ptid, observer_notify_new_thread(), thread_info::ptid, ptid_equal(), thread_info::state, switch_to_thread(), THREAD_EXITED, and THREAD_STOPPED.
Referenced by add_current_inferior_and_thread(), add_thread_with_info(), bsd_kvm_open(), common_open(), core_open(), darwin_attach(), extended_remote_attach(), fork_inferior(), gdbsim_create_inferior(), go32_create_inferior(), inf_ptrace_attach(), inf_validate_procs(), m32r_resume(), monitor_open(), remote_add_thread(), and tfile_open().
struct thread_info* add_thread_with_info | ( | ptid_t | ptid, |
struct private_thread_info * | priv | ||
) |
Definition at line 291 of file thread.c.
References _, add_thread_silent(), annotate_new_thread(), print_thread_events, printf_unfiltered(), thread_info::priv, and target_pid_to_str().
Referenced by add_thread(), darwin_check_new_threads(), and record_thread().
struct thread_info* any_live_thread_of_process | ( | int | pid | ) |
Definition at line 528 of file thread.c.
References ALL_NON_EXITED_THREADS, thread_info::executing, gdb_assert, inferior_ptid, inferior_thread(), thread_info::ptid, ptid_get_pid(), thread_info::state, and THREAD_EXITED.
Referenced by handle_vfork_child_exec_or_exit(), mi_cmd_execute(), reattach_breakpoints(), switch_to_program_space_and_thread(), and thread_db_update_thread_list_td_ta_thr_iter().
struct thread_info* any_thread_of_process | ( | int | pid | ) |
Definition at line 510 of file thread.c.
References ALL_NON_EXITED_THREADS, gdb_assert, inferior_ptid, inferior_thread(), thread_info::ptid, and ptid_get_pid().
Referenced by detach_inferior_command(), dispose_inferior(), have_live_inferiors(), inferior_command(), kill_inferior_command(), kill_or_detach(), mi_cmd_remove_inferior(), and run_one_inferior().
|
static |
Definition at line 162 of file thread.c.
References bpstat_clear(), btrace_teardown(), thread_info::control, delete_at_next_stop(), delete_longjmp_breakpoint_at_next_stop(), do_all_continuations_thread(), do_all_intermediate_continuations_thread(), thread_control_state::exception_resume_breakpoint, thread_info::num, thread_control_state::single_step_breakpoints, thread_control_state::step_resume_breakpoint, and thread_control_state::stop_bpstat.
Referenced by delete_thread_1().
|
static |
Definition at line 131 of file thread.c.
References disp_del_at_next_stop.
Referenced by clear_thread_inferior_resources().
void delete_exception_resume_breakpoint | ( | struct thread_info * | tp | ) |
Definition at line 112 of file thread.c.
References thread_info::control, delete_thread_breakpoint(), and thread_control_state::exception_resume_breakpoint.
Referenced by delete_thread_infrun_breakpoints(), follow_fork(), and process_event_stop_test().
void delete_exited_threads | ( | void | ) |
Definition at line 640 of file thread.c.
References ALL_THREADS_SAFE, delete_thread(), thread_info::ptid, thread_info::state, and THREAD_EXITED.
Referenced by linux_nat_update_thread_list().
void delete_single_step_breakpoints | ( | struct thread_info * | tp | ) |
Definition at line 121 of file thread.c.
References thread_info::control, delete_thread_breakpoint(), and thread_control_state::single_step_breakpoints.
Referenced by delete_just_stopped_threads_single_step_breakpoints(), delete_thread_infrun_breakpoints(), record_full_wait_1(), resume(), and resume_cleanups().
void delete_step_resume_breakpoint | ( | struct thread_info * | tp | ) |
Definition at line 105 of file thread.c.
References thread_info::control, delete_thread_breakpoint(), and thread_control_state::step_resume_breakpoint.
Referenced by delete_thread_infrun_breakpoints(), follow_fork(), and process_event_stop_test().
void delete_thread | ( | ptid_t | ptid | ) |
Definition at line 368 of file thread.c.
References delete_thread_1().
Referenced by add_thread_silent(), attach_thread(), darwin_check_new_threads(), delete_exited_threads(), delete_thread_of_inferior(), exit_lwp(), follow_exec(), procfs_wait(), prune_threads(), remote_update_thread_list(), switch_back_to_stepped_thread(), sync_threadlists(), and windows_delete_thread().
Definition at line 313 of file thread.c.
References clear_thread_inferior_resources(), free_thread(), inferior_ptid, thread_info::next, observer_notify_thread_exit(), ptid_equal(), and THREAD_EXITED.
Referenced by delete_thread(), and delete_thread_silent().
|
static |
Definition at line 95 of file thread.c.
References delete_breakpoint().
Referenced by delete_exception_resume_breakpoint(), delete_single_step_breakpoints(), and delete_step_resume_breakpoint().
void delete_thread_silent | ( | ptid_t | ptid | ) |
Definition at line 374 of file thread.c.
References delete_thread_1().
Referenced by bsd_kvm_close(), delete_thread_of_inferior(), gdbsim_mourn_inferior(), go32_mourn_inferior(), m32r_close(), m32r_kill(), m32r_load(), monitor_close(), monitor_mourn_inferior(), and sdireset_command().
|
static |
Definition at line 655 of file thread.c.
References find_thread_ptid(), thread_info::stack_temporaries, thread_info::stack_temporaries_enabled, VEC_free, and xfree().
Referenced by enable_thread_stack_temporaries().
Definition at line 570 of file thread.c.
References cleanup_chain, current_thread, do_cleanups(), GDB_RC_OK, inferior_ptid, make_cleanup_ui_out_tuple_begin_end(), thread_info::next, thread_info::num, thread_info::ptid, ptid_equal(), thread_info::state, THREAD_EXITED, ui_out_field_int(), and update_thread_list().
Referenced by gdb_list_thread_ids().
Definition at line 1664 of file thread.c.
References _, annotate_thread_changed(), error(), find_thread_id(), GDB_RC_OK, get_selected_frame(), inferior_ptid, thread_info::num, parse_and_eval(), pid_to_thread_id(), print_stack_frame(), prune_threads(), thread_info::ptid, SRC_AND_LOC, thread_info::state, switch_to_thread(), target_pid_to_str(), thread_alive(), THREAD_RUNNING, ui_out_field_int(), ui_out_text(), and value_as_long().
Referenced by gdb_thread_select().
|
static |
Definition at line 1293 of file thread.c.
References find_inferior_id(), find_inferior_ptid(), find_thread_ptid(), current_thread_cleanup::inf_id, inferior_ptid, current_thread_cleanup::inferior_ptid, is_stopped(), null_ptid, thread_info::ptid, ptid_equal(), restore_current_thread(), restore_selected_frame(), current_thread_cleanup::selected_frame_id, current_thread_cleanup::selected_frame_level, set_current_inferior(), target_has_memory, target_has_registers, target_has_stack, and current_thread_cleanup::was_stopped.
Referenced by make_cleanup_restore_current_thread().
Definition at line 673 of file thread.c.
References disable_thread_stack_temporaries(), find_thread_ptid(), gdb_assert, make_cleanup(), thread_info::stack_temporaries, thread_info::stack_temporaries_enabled, and xmalloc().
Referenced by evaluate_subexp().
struct thread_info* find_thread_id | ( | int | num | ) |
Definition at line 380 of file thread.c.
References thread_info::next, and thread_info::num.
Referenced by display_tib(), do_captured_thread_select(), longjmp_bkpt_dtor(), mi_cmd_execute(), mi_cmd_var_update_iter(), thread_apply_command(), and thread_id_to_pid().
struct thread_info* find_thread_ptid | ( | ptid_t | ptid | ) |
Definition at line 393 of file thread.c.
References thread_info::next, thread_info::ptid, and ptid_equal().
Referenced by add_thread_silent(), aix_thread_fetch_registers(), aix_thread_resume(), aix_thread_store_registers(), append_resumption(), attach_thread(), bpstat_clear_actions(), continue_command(), darwin_check_new_threads(), delete_checkpoint_command(), demand_private_info(), detach_thread(), disable_thread_stack_temporaries(), displaced_step_prepare(), do_restore_current_thread_cleanup(), enable_thread_stack_temporaries(), exit_lwp(), find_new_threads_callback(), finish_thread_state(), follow_fork(), get_last_thread_stack_temporary(), get_pending_status(), handle_inferior_event_1(), inferior_thread(), infrun_thread_stop_requested_callback(), is_executing(), is_thread_state(), linux_nat_resume_callback(), linux_nat_stop_lwp(), maint_btrace_clear_cmd(), maint_btrace_clear_packet_history_cmd(), maint_btrace_packet_history_cmd(), maint_info_btrace_cmd(), make_cleanup_restore_current_thread(), mi_on_resume(), procfs_update_thread_list(), program_info(), push_thread_stack_temporary(), python_on_normal_stop(), ravenscar_add_thread(), ravenscar_update_inferior_ptid(), record_btrace_fetch_registers(), record_btrace_find_resume_thread(), record_btrace_find_thread_to_move(), record_btrace_frame_sniffer(), record_btrace_info(), record_btrace_tailcall_frame_sniffer(), record_btrace_thread_alive(), remote_core_of_thread(), remote_detach_1(), remote_threads_extra_info(), require_btrace_thread(), restore_current_thread_cleanup_dtor(), run_inferior_call(), set_executing(), set_running(), set_stop_requested(), task_command_1(), thread_change_ptid(), thread_db_get_thread_local_address(), thread_db_pid_to_str(), thread_from_lwp(), thread_id_make_value(), thread_stack_temporaries_enabled_p(), and value_in_thread_stack_temporaries().
void finish_thread_state | ( | ptid_t | ptid | ) |
Definition at line 911 of file thread.c.
References all, thread_info::executing, find_thread_ptid(), gdb_assert, minus_one_ptid, thread_info::next, observer_notify_target_resumed(), thread_info::ptid, ptid_equal(), ptid_get_pid(), ptid_is_pid(), thread_info::state, THREAD_EXITED, THREAD_RUNNING, and THREAD_STOPPED.
Referenced by finish_thread_state_cleanup(), and run_inferior_call().
void finish_thread_state_cleanup | ( | void * | arg | ) |
Definition at line 950 of file thread.c.
References finish_thread_state(), and gdb_assert.
Referenced by fetch_inferior_event(), normal_stop(), prepare_for_detach(), run_command_1(), and wait_for_inferior().
struct thread_info* first_thread_of_process | ( | int | pid | ) |
Definition at line 497 of file thread.c.
References thread_info::next, thread_info::num, thread_info::ptid, and ptid_get_pid().
Referenced by core_open(), and extended_remote_attach().
|
static |
Definition at line 183 of file thread.c.
References thread_info::name, thread_info::priv, thread_info::private_dtor, and xfree().
Referenced by delete_thread_1(), and init_thread_list().
Definition at line 604 of file thread.c.
References catch_exceptions_with_msg(), do_captured_list_thread_ids(), GDB_RC_FAIL, GDB_RC_OK, and RETURN_MASK_ALL.
Referenced by mi_cmd_thread_list_ids().
Definition at line 1707 of file thread.c.
References catch_exceptions_with_msg(), do_captured_thread_select(), GDB_RC_FAIL, GDB_RC_OK, and RETURN_MASK_ALL.
Referenced by mi_cmd_thread_select(), and thread_command().
Definition at line 741 of file thread.c.
References find_thread_ptid(), gdb_assert, thread_info::stack_temporaries, VEC_empty, and VEC_last.
Referenced by call_function_by_hand_dummy().
Definition at line 482 of file thread.c.
References thread_info::next, thread_info::ptid, and ptid_equal().
Referenced by aix_thread_thread_alive(), breakpoint_re_set_thread(), bsd_uthread_update_thread_list(), bsd_uthread_wait(), check_event(), procfs_notice_thread(), procfs_wait(), remote_notice_new_inferior(), set_momentary_breakpoint(), sol_thread_wait(), sol_update_thread_list_callback(), step_1(), and value_of_root_1().
struct thread_info* inferior_thread | ( | void | ) |
Definition at line 85 of file thread.c.
References find_thread_ptid(), gdb_assert, and inferior_ptid.
Referenced by any_live_thread_of_process(), any_thread_of_process(), arm_linux_copy_svc(), attach_command_post_wait(), bpstat_do_actions(), breakpoint_about_to_proceed(), call_function_by_hand_dummy(), clear_proceed_status(), displaced_step_fixup(), do_initial_windows_stuff(), do_target_resume(), find_thread_needs_step_over(), finish_backward(), finish_command(), finish_command_continuation(), finish_forward(), follow_exec(), follow_fork(), follow_fork_inferior(), follow_inferior_reset_breakpoints(), for_each_just_stopped_thread(), handle_inferior_event_1(), inferior_event_handler(), infrun_thread_stop_requested_callback(), insert_exception_resume_breakpoint(), insert_exception_resume_from_probe(), insert_longjmp_resume_breakpoint(), insert_single_step_breakpoint(), insert_step_resume_breakpoint_at_sal_1(), linux_child_follow_fork(), mi_about_to_proceed(), mi_execute_command(), mi_on_normal_stop(), mi_on_resume(), normal_stop(), print_signal_received_reason(), print_stop_event(), proceed(), python_on_normal_stop(), queue_signal_command(), record_btrace_stopped_by_hw_breakpoint(), record_btrace_stopped_by_sw_breakpoint(), record_full_resume(), remote_follow_fork(), restore_infcall_control_state(), restore_infcall_suspend_state(), resume(), resume_cleanups(), save_infcall_control_state(), save_infcall_suspend_state(), set_step_frame(), set_step_info(), signal_command(), spu_skip_standalone_loader(), step_1(), step_1_continuation(), step_once(), thread_name_command(), until_break_command(), and until_next_command().
|
static |
Definition at line 1177 of file thread.c.
References current_uiout, and print_thread_info().
Referenced by _initialize_thread().
void init_thread_list | ( | void | ) |
Definition at line 198 of file thread.c.
References free_thread(), highest_thread_num, thread_info::next, and threads_executing.
Referenced by core_open(), detach_command(), disconnect_command(), extended_remote_create_inferior(), fork_inferior(), gdbsim_create_inferior(), kill_command(), monitor_open(), procfs_detach(), procfs_mourn_inferior(), procfs_open_1(), remote_open_1(), and windows_init_thread_list().
Definition at line 840 of file thread.c.
References thread_info::executing, find_thread_ptid(), and gdb_assert.
Referenced by bpstat_do_actions(), get_current_frame(), get_pending_status(), has_stack_frames(), infrun_thread_stop_requested_callback(), notice_new_inferior(), proceed_after_attach_callback(), proceed_after_vfork_done(), record_btrace_start_replaying(), switch_to_thread(), and watchpoint_in_thread_scope().
Definition at line 828 of file thread.c.
References is_thread_state(), and THREAD_EXITED.
Referenced by bpstat_do_actions(), bsd_uthread_update_thread_list(), bsd_uthread_wait(), ensure_valid_thread(), find_thread_of_process(), get_current_frame(), has_stack_frames(), mi_cmd_execute(), print_thread_info(), proceed_after_attach_callback(), procfs_notice_thread(), program_info(), remote_notice_new_inferior(), sol_thread_wait(), sol_update_thread_list_callback(), switch_back_to_stepped_thread(), switch_to_thread(), thpy_is_exited(), thread_command(), and validate_siginfo_access().
Definition at line 834 of file thread.c.
References is_thread_state(), and THREAD_RUNNING.
Referenced by ensure_not_running(), fetch_inferior_event(), inferior_command(), infrun_thread_stop_requested_callback(), interrupt_thread_callback(), proceed_after_vfork_done(), program_info(), thpy_is_running(), until_break_command(), until_next_command(), and validate_siginfo_access().
Definition at line 822 of file thread.c.
References is_thread_state(), and THREAD_STOPPED.
Referenced by delete_checkpoint_command(), do_restore_current_thread_cleanup(), finish_command_continuation(), make_cleanup_restore_current_thread(), mi_cmd_var_update_iter(), proceed_thread(), proceed_thread_callback(), and thpy_is_stopped().
|
static |
Definition at line 812 of file thread.c.
References find_thread_ptid(), gdb_assert, and thread_info::state.
Referenced by is_exited(), is_running(), and is_stopped().
struct thread_info* iterate_over_threads | ( | int(*)(struct thread_info *, void *) | callback, |
void * | data | ||
) |
Definition at line 419 of file thread.c.
References thread_info::next.
Referenced by continue_1(), delete_breakpoint(), delete_inferior_1(), discard_all_continuations(), discard_all_intermediate_continuations(), do_all_continuations(), do_all_intermediate_continuations(), exec_continue(), exit_inferior_1(), find_stop_signal(), handle_vfork_child_exec_or_exit(), have_threads(), inf_has_multiple_threads(), infrun_thread_stop_requested(), linux_make_corefile_notes(), mi_cmd_exec_interrupt(), mi_cmd_target_detach(), mi_on_resume(), pd_update(), print_one_inferior(), proceed_after_attach(), remote_start_remote(), sol_get_ada_task_ptid(), and sync_threadlists().
struct cleanup* make_cleanup_restore_current_thread | ( | void | ) |
Definition at line 1354 of file thread.c.
References current_inferior(), do_restore_current_thread_cleanup(), find_thread_ptid(), frame_relative_level(), get_frame_id(), get_selected_frame_if_set(), current_thread_cleanup::inf_id, inferior_ptid, current_thread_cleanup::inferior_ptid, is_stopped(), make_cleanup_dtor(), null_ptid, inferior::num, ptid_equal(), thread_info::refcount, inferior::removable, restore_current_thread_cleanup_dtor(), current_thread_cleanup::selected_frame_id, current_thread_cleanup::selected_frame_level, target_has_memory, target_has_registers, target_has_stack, current_thread_cleanup::was_removable, current_thread_cleanup::was_stopped, and xmalloc().
Referenced by continue_1(), exec_continue(), fetch_inferior_event(), handle_vfork_child_exec_or_exit(), infrun_thread_stop_requested_callback(), mi_cmd_trace_frame_collected(), notice_new_inferior(), print_thread_info(), proceed_after_attach(), save_current_space_and_thread(), thread_apply_all_command(), thread_apply_command(), trace_dump_command(), and value_of_root_1().
|
static |
Definition at line 221 of file thread.c.
References highest_thread_num, target_waitstatus::kind, thread_info::next, thread_info::num, thread_info::pending_follow, thread_info::ptid, thread_info::state, TARGET_WAITKIND_SPURIOUS, thread_list, THREAD_STOPPED, and xcalloc().
Referenced by add_thread_silent(), linux_nat_set_new_thread(), procfs_update_thread_list(), and record_thread().
int pc_in_thread_step_range | ( | CORE_ADDR | pc, |
struct thread_info * | thread | ||
) |
Definition at line 960 of file thread.c.
References thread_info::control, thread_control_state::step_range_end, and thread_control_state::step_range_start.
Referenced by handle_signal_stop(), process_event_stop_test(), and resume().
Definition at line 459 of file thread.c.
References thread_info::next, thread_info::num, thread_info::ptid, and ptid_equal().
Referenced by bpfinishpy_init(), bpstat_check_breakpoint_conditions(), breakpoint_re_set_thread(), do_captured_thread_select(), elf_gnu_ifunc_resolver_stop(), handle_signal_stop(), inferior_command(), mi_on_normal_stop(), pop_dummy_frame_bpt(), print_ada_task_info(), set_longjmp_breakpoint_for_call_dummy(), set_momentary_breakpoint(), step_1(), thread_command(), and varobj_create().
Definition at line 978 of file thread.c.
References _, current_thread, do_cleanups(), error(), gdb_assert, get_selected_frame(), inferior_ptid, is_exited(), LOCATION, make_cleanup(), make_cleanup_restore_current_thread(), make_cleanup_ui_out_list_begin_end(), make_cleanup_ui_out_table_begin_end(), make_cleanup_ui_out_tuple_begin_end(), name, thread_info::name, thread_info::next, null_ptid, thread_info::num, number_is_in_list(), print_stack_frame(), thread_info::ptid, ptid_equal(), ptid_get_pid(), thread_info::state, switch_to_thread(), target_core_of_thread(), target_extra_thread_info, target_pid_to_str(), target_thread_name(), THREAD_EXITED, THREAD_RUNNING, ui_left, 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(), update_thread_list(), xfree(), and xstrprintf().
Referenced by info_threads_command(), mi_cmd_list_thread_groups(), mi_cmd_thread_info(), and print_one_inferior().
void prune_threads | ( | void | ) |
Definition at line 626 of file thread.c.
References ALL_THREADS_SAFE, delete_thread(), thread_info::ptid, and thread_alive().
Referenced by bsd_uthread_update_thread_list(), do_captured_thread_select(), linux_nat_update_thread_list(), procfs_update_thread_list(), remote_update_thread_list(), sol_update_thread_list(), and thread_db_update_thread_list_td_ta_thr_iter().
Definition at line 707 of file thread.c.
References find_thread_ptid(), gdb_assert, thread_info::stack_temporaries, thread_info::stack_temporaries_enabled, and VEC_safe_push.
Referenced by call_function_by_hand_dummy().
|
static |
Definition at line 1218 of file thread.c.
References switch_to_thread().
Referenced by do_restore_current_thread_cleanup().
|
static |
Definition at line 1326 of file thread.c.
References find_inferior_id(), find_thread_ptid(), arm-linux::inf, current_thread_cleanup::inf_id, current_thread_cleanup::inferior_ptid, thread_info::refcount, inferior::removable, current_thread_cleanup::was_removable, and xfree().
Referenced by make_cleanup_restore_current_thread().
Definition at line 1224 of file thread.c.
References _, current_uiout, find_relative_frame(), frame_find_by_id(), frame_id_eq(), gdb_assert, get_current_frame(), get_frame_id(), get_selected_frame(), print_stack_frame(), select_frame(), SRC_AND_LOC, ui_out_is_mi_like_p(), and warning().
Referenced by do_restore_current_thread_cleanup().
Definition at line 850 of file thread.c.
References all, thread_info::executing, find_thread_ptid(), gdb_assert, minus_one_ptid, thread_info::next, thread_info::ptid, ptid_equal(), ptid_get_pid(), ptid_is_pid(), and threads_executing.
Referenced by handle_inferior_event_1(), linux_handle_extended_wait(), record_btrace_start_replaying(), record_full_wait_1(), remote_add_thread(), spu_skip_standalone_loader(), startup_inferior(), and target_resume().
Definition at line 772 of file thread.c.
References all, find_thread_ptid(), gdb_assert, minus_one_ptid, thread_info::next, observer_notify_target_resumed(), thread_info::ptid, ptid_equal(), ptid_get_pid(), ptid_is_pid(), thread_info::state, THREAD_EXITED, THREAD_RUNNING, and THREAD_STOPPED.
Referenced by linux_handle_extended_wait(), remote_add_thread(), resume(), and step_once().
Definition at line 886 of file thread.c.
References all, find_thread_ptid(), gdb_assert, minus_one_ptid, thread_info::next, observer_notify_thread_stop_requested(), thread_info::ptid, ptid_equal(), ptid_get_pid(), ptid_is_pid(), and thread_info::stop_requested.
Referenced by interrupt_target_1(), and set_stop_requested_callback().
|
static |
Definition at line 1344 of file thread.c.
References thread_array_cleanup::count, thread_info::refcount, and thread_array_cleanup::tp_array.
Referenced by thread_apply_all_command().
|
static |
Definition at line 1655 of file thread.c.
References _, and fprintf_filtered().
Referenced by _initialize_thread().
void switch_to_thread | ( | ptid_t | ptid | ) |
Definition at line 1185 of file thread.c.
References find_inferior_ptid(), gdb_assert, get_thread_regcache(), arm-linux::inf, inferior_ptid, is_executing(), is_exited(), null_ptid, inferior::pspace, ptid_equal(), regcache_read_pc(), reinit_frame_cache(), set_current_inferior(), set_current_program_space(), and stop_pc.
Referenced by add_inferior_command(), add_thread_silent(), clone_inferior_command(), context_switch(), core_open(), detach_inferior_command(), displaced_step_fixup(), dispose_inferior(), do_all_continuations_ptid(), do_captured_thread_select(), follow_fork(), gdbsim_close_inferior(), handle_inferior_event_1(), handle_vfork_child_exec_or_exit(), inferior_command(), kill_inferior_command(), kill_or_detach(), mi_cmd_execute(), mi_cmd_remove_inferior(), mi_cmd_target_detach(), notice_new_inferior(), print_thread_info(), proceed(), proceed_after_attach_callback(), proceed_after_vfork_done(), proceed_thread(), proceed_thread_callback(), restore_current_thread(), restore_thread_cleanup(), run_one_inferior(), startup_inferior(), switch_back_to_stepped_thread(), switch_to_program_space_and_thread(), task_command_1(), thpy_switch(), thread_apply_all_command(), thread_apply_command(), and value_of_root_1().
|
static |
Definition at line 614 of file thread.c.
References thread_info::ptid, thread_info::state, target_thread_alive(), and THREAD_EXITED.
Referenced by do_captured_thread_select(), prune_threads(), thread_apply_all_command(), and thread_apply_command().
|
static |
Definition at line 1424 of file thread.c.
References _, ALL_NON_EXITED_THREADS, check_for_argument(), thread_array_cleanup::count, do_cleanups(), error(), execute_command(), gdb_assert, inferior_ptid, make_cleanup(), make_cleanup_restore_current_thread(), thread_info::num, printf_filtered(), qsort, thread_info::refcount, set_thread_refcount(), skip_spaces(), switch_to_thread(), target_pid_to_str(), thread_alive(), thread_count(), thread_array_cleanup::tp_array, tp_array, tp_array_compar(), update_thread_list(), xfree(), and xmalloc().
Referenced by _initialize_thread().
|
static |
Definition at line 1499 of file thread.c.
References _, do_cleanups(), error(), execute_command(), find_thread_id(), get_number_or_range_state::finished, get_number_or_range(), inferior_ptid, init_number_or_range(), make_cleanup(), make_cleanup_restore_current_thread(), thread_info::num, printf_filtered(), thread_info::ptid, get_number_or_range_state::string, switch_to_thread(), target_pid_to_str(), thread_alive(), warning(), and xfree().
Referenced by _initialize_thread().
Definition at line 754 of file thread.c.
References find_inferior_ptid(), find_thread_ptid(), arm-linux::inf, observer_notify_thread_ptid_changed(), inferior::pid, thread_info::ptid, and ptid_get_pid().
Referenced by bsd_uthread_update_thread_list(), bsd_uthread_wait(), darwin_init_thread_list(), gnu_create_inferior(), inf_validate_procs(), linux_nat_attach(), linux_nat_switch_fork(), linux_nat_wait_1(), procfs_init_inferior(), and remote_notice_new_inferior().
void thread_command | ( | char * | tidstr, |
int | from_tty | ||
) |
Definition at line 1555 of file thread.c.
References _, current_uiout, error(), gdb_thread_select(), inferior_ptid, is_exited(), null_ptid, pid_to_thread_id(), printf_filtered(), ptid_equal(), target_has_stack, and target_pid_to_str().
Referenced by _initialize_thread(), and core_open().
int thread_count | ( | void | ) |
Definition at line 435 of file thread.c.
References thread_info::next.
Referenced by core_open(), info_mach_threads_command(), mi_execute_command(), remote_start_remote(), thread_apply_all_command(), and update_global_location_list().
|
static |
Definition at line 1601 of file thread.c.
References _, error(), thread_info::name, thread_info::next, thread_info::num, printf_filtered(), thread_info::ptid, re_comp(), target_extra_thread_info, target_pid_to_str(), target_thread_name(), and update_thread_list().
Referenced by _initialize_thread().
int thread_has_single_step_breakpoint_here | ( | struct thread_info * | tp, |
struct address_space * | aspace, | ||
CORE_ADDR | addr | ||
) |
Definition at line 151 of file thread.c.
References breakpoint_has_location_inserted_here(), thread_info::control, and thread_control_state::single_step_breakpoints.
Referenced by handle_signal_stop().
int thread_has_single_step_breakpoints_set | ( | struct thread_info * | tp | ) |
Definition at line 143 of file thread.c.
References thread_info::control, and thread_control_state::single_step_breakpoints.
Referenced by adjust_pc_after_break(), record_full_resume(), and resume().
|
static |
Definition at line 1745 of file thread.c.
References find_thread_ptid(), inferior_ptid, thread_info::num, and value_from_longest().
Definition at line 471 of file thread.c.
References find_thread_id(), pid_to_ptid(), and thread_info::ptid.
Referenced by set_sig_thread_cmd(), and value_of_root_1().
|
static |
Definition at line 1584 of file thread.c.
References _, error(), inferior_ptid, inferior_thread(), thread_info::name, null_ptid, ptid_equal(), skip_spaces(), and xfree().
Referenced by _initialize_thread().
Definition at line 694 of file thread.c.
References find_thread_ptid(), and thread_info::stack_temporaries_enabled.
Referenced by call_function_by_hand_dummy(), and evaluate_subexp().
int threads_are_executing | ( | void | ) |
Definition at line 880 of file thread.c.
References threads_executing.
Referenced by breakpoints_should_be_inserted_now().
Definition at line 1406 of file thread.c.
Referenced by thread_apply_all_command().
void update_thread_list | ( | void | ) |
Definition at line 1735 of file thread.c.
References target_update_thread_list(), and update_threads_executing().
Referenced by checkpoint_command(), do_captured_list_thread_ids(), infpy_threads(), linux_make_corefile_notes(), mi_cmd_list_thread_groups(), normal_stop(), print_thread_info(), thread_apply_all_command(), and thread_find_command().
|
static |
Definition at line 1719 of file thread.c.
References ALL_NON_EXITED_THREADS, thread_info::executing, and threads_executing.
Referenced by update_thread_list().
Definition at line 447 of file thread.c.
References thread_info::next, and thread_info::num.
Referenced by bppy_set_thread(), find_condition_and_thread(), gdbscm_set_breakpoint_thread_x(), insert_breakpoint_locations(), and watch_command_1().
Definition at line 719 of file thread.c.
References find_thread_ptid(), gdb_assert, thread_info::stack_temporaries, thread_info::stack_temporaries_enabled, VEC_empty, and VEC_iterate.
Referenced by evaluate_subexp().
|
static |
Definition at line 56 of file thread.c.
Referenced by init_thread_list(), and new_thread().
int print_thread_events = 1 |
Definition at line 1653 of file thread.c.
Referenced by add_thread_with_info(), exit_lwp(), procfs_wait(), and windows_delete_thread().
struct cmd_list_element* thread_cmd_list = NULL |
|
static |
struct thread_info* thread_list = NULL |
Definition at line 55 of file thread.c.
Referenced by darwin_check_new_threads(), new_thread(), and remote_start_remote().
|
static |
Definition at line 63 of file thread.c.
Referenced by init_thread_list(), set_executing(), threads_are_executing(), and update_threads_executing().