28void ATTRIBUTE_NORETURN
31 error (_(
"Invalid thread ID: %s"),
string);
47 error (_(
"negative value: %s"),
string);
56 const char *number = tidstr;
60 int explicit_inf_id = 0;
62 dot = strchr (number,
'.');
76 error (_(
"No inferior number '%d'"), inf_num);
94 if (it->per_inf_num == thr_num)
103 error (_(
"Unknown thread %d.%d."),
inf->num, thr_num);
105 error (_(
"Unknown thread %d."), thr_num);
117 int default_inferior)
119 init (tidlist, default_inferior);
154 gdb_assert_not_reached (
"unhandled state");
171 gdb_assert_not_reached (
"unhandled state");
198 int *thr_start,
int *thr_end)
208 while (p < space && *p !=
'.')
234 if (p[0] ==
'*' && (p[1] ==
'\0' || isspace (p[1])))
248 error (_(
"negative value: %s"),
m_cur_tok);
264 *thr_end = *thr_start;
278 return (*inf_num != 0 && *thr_start != 0);
285 int *thr_start,
int *thr_end)
287 gdb_assert (inf_num != NULL && thr_start != NULL && thr_end != NULL);
297 gdb_assert (inf_num != NULL && thr_num != NULL);
320 int inf_num,
int thr_num)
322 if (list == NULL || *list ==
'\0')
330 int tmp_inf, tmp_thr_start, tmp_thr_end;
332 if (!parser.
get_tid_range (&tmp_inf, &tmp_thr_start, &tmp_thr_end))
334 if (tmp_inf == inf_num
335 && tmp_thr_start <= thr_num && thr_num <= tmp_thr_end)
const char * cur_tok() const
void init(const char *string)
void setup_range(int start_value, int end_value, const char *end_ptr)
const char * cur_tok() const
bool get_tid_or_range(int *inf_num, int *thr_start, int *thr_end)
number_or_range_parser m_range_parser
enum tid_range_parser::@187 m_state
bool in_thread_range() const
bool tid_is_qualified() const
bool get_tid_range(int *inf_num, int *thr_start, int *thr_end)
void init(const char *tidlist, int default_inferior)
bool get_tid(int *inf_num, int *thr_num)
bool in_star_range() const
int get_number_trailer(const char **pp, int trailer)
int show_inferior_qualified_tids(void)
struct inferior * current_inferior(void)
struct inferior * find_inferior_id(int num)
struct thread_info * parse_thread_id(const char *tidstr, const char **end)
int tid_is_in_list(const char *list, int default_inferior, int inf_num, int thr_num)
void ATTRIBUTE_NORETURN invalid_thread_id_error(const char *string)
static int get_positive_number_trailer(const char **pp, int trailer, const char *string)