diff options
Diffstat (limited to 'gdb/tid-parse.h')
-rw-r--r-- | gdb/tid-parse.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/gdb/tid-parse.h b/gdb/tid-parse.h index 86a4985..8b9c4db 100644 --- a/gdb/tid-parse.h +++ b/gdb/tid-parse.h @@ -54,6 +54,7 @@ struct thread_info *parse_thread_id (const char *tidstr, const char **end); class tid_range_parser { public: + /* Default construction. Must call init before calling get_*. */ tid_range_parser () {} @@ -134,6 +135,7 @@ public: bool tid_is_qualified () const; private: + /* No need for these. They are intentionally not defined anywhere. */ tid_range_parser (const tid_range_parser &); tid_range_parser &operator= (const tid_range_parser &); @@ -143,16 +145,16 @@ private: /* The possible states of the tid range parser's state machine, indicating what sub-component are we expecting. */ enum - { - /* Parsing the inferior number. */ - STATE_INFERIOR, + { + /* Parsing the inferior number. */ + STATE_INFERIOR, - /* Parsing the thread number or thread number range. */ - STATE_THREAD_RANGE, + /* Parsing the thread number or thread number range. */ + STATE_THREAD_RANGE, - /* Parsing a star wildcard thread range. E.g., "1.*". */ - STATE_STAR_RANGE, - } m_state; + /* Parsing a star wildcard thread range. E.g., "1.*". */ + STATE_STAR_RANGE, + } m_state; /* The string being parsed. When parsing has finished, this points past the last parsed token. */ @@ -174,7 +176,6 @@ private: int m_default_inferior; }; - /* Accept a string-form list of thread IDs such as is accepted by tid_range_parser. Return true if the INF_NUM.THR.NUM thread is in the list. DEFAULT_INFERIOR is the inferior number to assume if a @@ -183,7 +184,7 @@ private: By definition, an empty list includes all threads. This is to be interpreted as typing a command such as "info threads" with no arguments. */ -extern int tid_is_in_list (const char *list, int default_inferior, - int inf_num, int thr_num); +extern int tid_is_in_list (const char *list, int default_inferior, int inf_num, + int thr_num); #endif /* TID_PARSE_H */ |