GDB (xrefs)
|
#include "tid-parse.h"
Public Member Functions | |
tid_range_parser () | |
tid_range_parser (const char *tidlist, int default_inferior) | |
void | init (const char *tidlist, int default_inferior) |
bool | get_tid (int *inf_num, int *thr_num) |
bool | get_tid_range (int *inf_num, int *thr_start, int *thr_end) |
bool | in_star_range () const |
bool | in_thread_range () const |
bool | finished () const |
const char * | cur_tok () const |
void | skip_range () |
bool | tid_is_qualified () const |
Private Types | |
enum | { STATE_INFERIOR , STATE_THREAD_RANGE , STATE_STAR_RANGE } |
Private Member Functions | |
tid_range_parser (const tid_range_parser &) | |
tid_range_parser & | operator= (const tid_range_parser &) |
bool | get_tid_or_range (int *inf_num, int *thr_start, int *thr_end) |
Private Attributes | |
enum tid_range_parser:: { ... } | m_state |
const char * | m_cur_tok |
number_or_range_parser | m_range_parser |
int | m_inf_num |
bool | m_qualified |
int | m_default_inferior |
Definition at line 54 of file tid-parse.h.
|
private |
Enumerator | |
---|---|
STATE_INFERIOR | |
STATE_THREAD_RANGE | |
STATE_STAR_RANGE |
Definition at line 145 of file tid-parse.h.
|
inline |
Definition at line 58 of file tid-parse.h.
tid_range_parser::tid_range_parser | ( | const char * | tidlist, |
int | default_inferior ) |
Definition at line 116 of file tid-parse.c.
References init().
|
private |
const char * tid_range_parser::cur_tok | ( | ) | const |
Definition at line 160 of file tid-parse.c.
References number_or_range_parser::cur_tok(), m_cur_tok, m_range_parser, m_state, STATE_INFERIOR, STATE_STAR_RANGE, and STATE_THREAD_RANGE.
Referenced by thread_apply_command(), thread_apply_command_completer(), and tid_is_in_list().
bool tid_range_parser::finished | ( | ) | const |
Definition at line 137 of file tid-parse.c.
References number_or_range_parser::finished(), m_cur_tok, m_range_parser, m_state, STATE_INFERIOR, STATE_STAR_RANGE, and STATE_THREAD_RANGE.
Referenced by thread_apply_command(), thread_apply_command_completer(), and tid_is_in_list().
bool tid_range_parser::get_tid | ( | int * | inf_num, |
int * | thr_num ) |
Definition at line 295 of file tid-parse.c.
References get_tid_or_range().
Referenced by thread_apply_command().
|
private |
Definition at line 197 of file tid-parse.c.
References number_or_range_parser::cur_tok(), number_or_range_parser::end_value(), number_or_range_parser::get_number(), get_positive_number_trailer(), number_or_range_parser::in_range(), number_or_range_parser::init(), m_cur_tok, m_default_inferior, m_inf_num, m_qualified, m_range_parser, m_state, number_or_range_parser::setup_range(), skip_range(), STATE_INFERIOR, STATE_STAR_RANGE, and STATE_THREAD_RANGE.
Referenced by get_tid(), and get_tid_range().
bool tid_range_parser::get_tid_range | ( | int * | inf_num, |
int * | thr_start, | ||
int * | thr_end ) |
Definition at line 284 of file tid-parse.c.
References get_tid_or_range().
Referenced by thread_apply_command(), thread_apply_command_completer(), and tid_is_in_list().
bool tid_range_parser::in_star_range | ( | ) | const |
Definition at line 305 of file tid-parse.c.
References m_state, and STATE_STAR_RANGE.
Referenced by thread_apply_command(), and thread_apply_command_completer().
bool tid_range_parser::in_thread_range | ( | ) | const |
Definition at line 311 of file tid-parse.c.
References m_state, and STATE_THREAD_RANGE.
Referenced by thread_apply_command_completer().
void tid_range_parser::init | ( | const char * | tidlist, |
int | default_inferior ) |
Definition at line 125 of file tid-parse.c.
References m_cur_tok, m_default_inferior, m_inf_num, m_qualified, m_state, and STATE_INFERIOR.
Referenced by skip_range(), thread_apply_command(), thread_apply_command_completer(), and tid_range_parser().
|
private |
void tid_range_parser::skip_range | ( | ) |
Definition at line 175 of file tid-parse.c.
References number_or_range_parser::cur_tok(), init(), m_default_inferior, m_range_parser, m_state, number_or_range_parser::skip_range(), STATE_STAR_RANGE, and STATE_THREAD_RANGE.
Referenced by get_tid_or_range(), thread_apply_command(), and thread_apply_command_completer().
bool tid_range_parser::tid_is_qualified | ( | ) | const |
Definition at line 187 of file tid-parse.c.
References m_qualified.
Referenced by thread_apply_command().
|
private |
Definition at line 159 of file tid-parse.h.
Referenced by cur_tok(), finished(), get_tid_or_range(), and init().
|
private |
Definition at line 174 of file tid-parse.h.
Referenced by get_tid_or_range(), init(), and skip_range().
|
private |
Definition at line 166 of file tid-parse.h.
Referenced by get_tid_or_range(), and init().
|
private |
Definition at line 171 of file tid-parse.h.
Referenced by get_tid_or_range(), init(), and tid_is_qualified().
|
private |
Definition at line 163 of file tid-parse.h.
Referenced by cur_tok(), finished(), get_tid_or_range(), and skip_range().
enum { ... } tid_range_parser::m_state |
Referenced by cur_tok(), finished(), get_tid_or_range(), in_star_range(), in_thread_range(), init(), and skip_range().