GDB (API)
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 cleanup * make_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)

Definition at line 317 of file gdbthread.h.


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]

Definition at line 261 of file thread.c.

struct thread_info* add_thread_silent ( ptid_t  ptid) [read]

Definition at line 196 of file thread.c.

struct thread_info* add_thread_with_info ( ptid_t  ptid,
struct private_thread_info *   
) [read]

Definition at line 247 of file thread.c.

struct thread_info* any_live_thread_of_process ( int  pid) [read]

Definition at line 478 of file thread.c.

int any_running ( void  )

Definition at line 651 of file thread.c.

struct thread_info* any_thread_of_process ( int  pid) [read]

Definition at line 466 of file thread.c.

Definition at line 100 of file thread.c.

Definition at line 90 of file thread.c.

void delete_thread ( ptid_t  )

Definition at line 324 of file thread.c.

Definition at line 330 of file thread.c.

struct thread_info* find_thread_id ( int  num) [read]

Definition at line 336 of file thread.c.

struct thread_info* find_thread_ptid ( ptid_t  ptid) [read]

Definition at line 349 of file thread.c.

void finish_thread_state ( ptid_t  ptid)

Definition at line 718 of file thread.c.

void finish_thread_state_cleanup ( void *  ptid_p)

Definition at line 757 of file thread.c.

struct thread_info* first_thread_of_process ( int  pid) [read]

Definition at line 453 of file thread.c.

Definition at line 438 of file thread.c.

struct thread_info* inferior_thread ( void  ) [read]

Definition at line 82 of file thread.c.

void init_thread_list ( void  )

Definition at line 155 of file thread.c.

int is_executing ( ptid_t  ptid)

Definition at line 663 of file thread.c.

int is_exited ( ptid_t  ptid)

Definition at line 639 of file thread.c.

int is_running ( ptid_t  ptid)

Definition at line 645 of file thread.c.

int is_stopped ( ptid_t  ptid)

Definition at line 633 of file thread.c.

struct thread_info* iterate_over_threads ( thread_callback_func  ,
void *   
) [read]

Definition at line 375 of file thread.c.

struct cleanup* make_cleanup_restore_current_thread ( void  ) [read]

Definition at line 1161 of file thread.c.

int pc_in_thread_step_range ( CORE_ADDR  pc,
struct thread_info thread 
)

Definition at line 767 of file thread.c.

Definition at line 415 of file thread.c.

void print_thread_info ( struct ui_out *  uiout,
char *  threads,
int  pid 
)

Definition at line 785 of file thread.c.

void set_executing ( ptid_t  ptid,
int  executing 
)

Definition at line 673 of file thread.c.

void set_running ( ptid_t  ptid,
int  running 
)

Definition at line 583 of file thread.c.

void set_stop_requested ( ptid_t  ptid,
int  stop 
)

Definition at line 693 of file thread.c.

void switch_to_thread ( ptid_t  ptid)

Definition at line 992 of file thread.c.

void thread_change_ptid ( ptid_t  old_ptid,
ptid_t  new_ptid 
)

Definition at line 565 of file thread.c.

int thread_count ( void  )

Definition at line 391 of file thread.c.

Definition at line 427 of file thread.c.

void update_thread_list ( void  )

Definition at line 1490 of file thread.c.

int valid_thread_id ( int  thread)

Definition at line 403 of file thread.c.


Variable Documentation

Definition at line 1427 of file thread.c.

Definition at line 1510 of file thread.c.

Definition at line 57 of file thread.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines