aboutsummaryrefslogtreecommitdiff
path: root/gdb/tid-parse.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:36:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:46:02 -0500
commitc583a2520616c2736cffc389c89a48b159366e6c (patch)
treeb4925f26506fcee96c16119431c01760f05db95d /gdb/tid-parse.h
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadbinutils-users/simark/clang-format.zip
binutils-users/simark/clang-format.tar.gz
binutils-users/simark/clang-format.tar.bz2
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/tid-parse.h')
-rw-r--r--gdb/tid-parse.h23
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 */