GDB (xrefs)
Classes | Defines | Typedefs | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/gdbthread.h File Reference
#include "breakpoint.h"
#include "frame.h"
#include "ui-out.h"
#include "inferior.h"
#include "btrace.h"

Go to the source code of this file.

Classes

struct  thread_control_state
struct  thread_suspend_state
struct  thread_info

Defines

#define ALL_THREADS(T)   for (T = thread_list; T; T = T->next)

Typedefs

typedef int(* thread_callback_func )(struct thread_info *, void *)

Enumerations

enum  thread_state { THREAD_STOPPED, THREAD_RUNNING, THREAD_EXITED }

Functions

void init_thread_list (void)
struct thread_infoadd_thread (ptid_t ptid)
struct thread_infoadd_thread_silent (ptid_t ptid)
struct thread_infoadd_thread_with_info (ptid_t ptid, struct private_thread_info *)
void delete_thread (ptid_t)
void delete_thread_silent (ptid_t)
void delete_step_resume_breakpoint (struct thread_info *)
void delete_exception_resume_breakpoint (struct thread_info *)
ptid_t thread_id_to_pid (int)
int pid_to_thread_id (ptid_t ptid)
int in_thread_list (ptid_t ptid)
int valid_thread_id (int thread)
struct thread_infofind_thread_ptid (ptid_t ptid)
struct thread_infofind_thread_id (int num)
struct thread_infofirst_thread_of_process (int pid)
struct thread_infoany_thread_of_process (int pid)
struct thread_infoany_live_thread_of_process (int pid)
void thread_change_ptid (ptid_t old_ptid, ptid_t new_ptid)
struct thread_infoiterate_over_threads (thread_callback_func, void *)
int thread_count (void)
void switch_to_thread (ptid_t ptid)
void set_running (ptid_t ptid, int running)
void set_stop_requested (ptid_t ptid, int stop)
int is_running (ptid_t ptid)
int is_exited (ptid_t ptid)
int is_stopped (ptid_t ptid)
int any_running (void)
void set_executing (ptid_t ptid, int executing)
int is_executing (ptid_t ptid)
void finish_thread_state (ptid_t ptid)
void finish_thread_state_cleanup (void *ptid_p)
void print_thread_info (struct ui_out *uiout, char *threads, int pid)
struct cleanupmake_cleanup_restore_current_thread (void)
struct thread_infoinferior_thread (void)
void update_thread_list (void)
int pc_in_thread_step_range (CORE_ADDR pc, struct thread_info *thread)

Variables

struct cmd_list_elementthread_cmd_list
int print_thread_events
struct thread_infothread_list

Define Documentation

#define ALL_THREADS (   T)    for (T = thread_list; T; T = T->next)

Typedef Documentation

typedef int(* thread_callback_func)(struct thread_info *, void *)

Definition at line 312 of file gdbthread.h.


Enumeration Type Documentation

Enumerator:
THREAD_STOPPED 
THREAD_RUNNING 
THREAD_EXITED 

Definition at line 34 of file gdbthread.h.


Function Documentation

struct thread_info* add_thread ( ptid_t  ptid) [read]
struct thread_info* add_thread_silent ( ptid_t  ptid) [read]
struct thread_info* add_thread_with_info ( ptid_t  ptid,
struct private_thread_info  
) [read]
struct thread_info* any_live_thread_of_process ( int  pid) [read]
int any_running ( void  )

Definition at line 651 of file thread.c.

References thread_info::next, thread_info::state, and THREAD_RUNNING.

struct thread_info* any_thread_of_process ( int  pid) [read]
void delete_thread ( ptid_t  )
struct thread_info* find_thread_id ( int  num) [read]
struct thread_info* find_thread_ptid ( ptid_t  ptid) [read]
void finish_thread_state ( ptid_t  ptid)
void finish_thread_state_cleanup ( void *  ptid_p)
struct thread_info* first_thread_of_process ( int  pid) [read]

Definition at line 453 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_1().

struct thread_info* inferior_thread ( void  ) [read]
void init_thread_list ( void  )
int is_executing ( ptid_t  ptid)
int is_exited ( ptid_t  ptid)
int is_running ( ptid_t  ptid)
int is_stopped ( ptid_t  ptid)
struct thread_info* iterate_over_threads ( thread_callback_func  ,
void *   
) [read]
struct cleanup* make_cleanup_restore_current_thread ( void  ) [read]
int pc_in_thread_step_range ( CORE_ADDR  pc,
struct thread_info thread 
)
void print_thread_info ( struct ui_out uiout,
char *  threads,
int  pid 
)
void set_executing ( ptid_t  ptid,
int  executing 
)
void set_running ( ptid_t  ptid,
int  running 
)
void set_stop_requested ( ptid_t  ptid,
int  stop 
)
void switch_to_thread ( ptid_t  ptid)
void thread_change_ptid ( ptid_t  old_ptid,
ptid_t  new_ptid 
)
int thread_count ( void  )

Definition at line 427 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().

void update_thread_list ( void  )
int valid_thread_id ( int  thread)

Variable Documentation

Definition at line 1427 of file thread.c.

Referenced by add_thread_with_info(), exit_lwp(), procfs_wait(), and windows_delete_thread().

Definition at line 1510 of file thread.c.

Definition at line 57 of file thread.c.

Referenced by darwin_check_new_threads(), and new_thread().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines