GDB (API)
Functions | Variables
/home/stan/gdb/src/gdb/thread.c File Reference
#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 "exceptions.h"
#include "command.h"
#include "gdbcmd.h"
#include "regcache.h"
#include "gdb.h"
#include "gdb_string.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.

Functions

void _initialize_thread (void)
struct thread_infoinferior_thread (void)
void delete_step_resume_breakpoint (struct thread_info *tp)
void delete_exception_resume_breakpoint (struct thread_info *tp)
void init_thread_list (void)
struct thread_infoadd_thread_silent (ptid_t ptid)
struct thread_infoadd_thread_with_info (ptid_t ptid, struct private_thread_info *private)
struct thread_infoadd_thread (ptid_t ptid)
void delete_thread (ptid_t ptid)
void delete_thread_silent (ptid_t ptid)
struct thread_infofind_thread_id (int num)
struct thread_infofind_thread_ptid (ptid_t ptid)
struct thread_infoiterate_over_threads (int(*callback)(struct thread_info *, void *), void *data)
int thread_count (void)
int valid_thread_id (int num)
int pid_to_thread_id (ptid_t ptid)
ptid_t thread_id_to_pid (int num)
int in_thread_list (ptid_t ptid)
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)
enum gdb_rc gdb_list_thread_ids (struct ui_out *uiout, char **error_message)
void thread_change_ptid (ptid_t old_ptid, ptid_t new_ptid)
void set_running (ptid_t ptid, int running)
int is_stopped (ptid_t ptid)
int is_exited (ptid_t ptid)
int is_running (ptid_t ptid)
int any_running (void)
int is_executing (ptid_t ptid)
void set_executing (ptid_t ptid, int executing)
void set_stop_requested (ptid_t ptid, int stop)
void finish_thread_state (ptid_t ptid)
void finish_thread_state_cleanup (void *arg)
int pc_in_thread_step_range (CORE_ADDR pc, struct thread_info *thread)
void print_thread_info (struct ui_out *uiout, char *requested_threads, int pid)
void switch_to_thread (ptid_t ptid)
struct cleanup * make_cleanup_restore_current_thread (void)
enum gdb_rc gdb_thread_select (struct ui_out *uiout, char *tidstr, char **error_message)
void update_thread_list (void)

Variables

struct thread_infothread_list = NULL
int print_thread_events = 1
struct cmd_list_elementthread_cmd_list = NULL

Function Documentation

void _initialize_thread ( void  )
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 *  private 
) [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  ptid)

Definition at line 324 of file thread.c.

void delete_thread_silent ( ptid_t  ptid)

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 *  arg)

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.

enum gdb_rc gdb_list_thread_ids ( struct ui_out *  uiout,
char **  error_message 
)

Definition at line 532 of file thread.c.

enum gdb_rc gdb_thread_select ( struct ui_out *  uiout,
char *  tidstr,
char **  error_message 
)

Definition at line 1481 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 ( int(*)(struct thread_info *, void *)  callback,
void *  data 
) [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 *  requested_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.

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.

struct thread_info* thread_list = NULL

Definition at line 57 of file thread.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines