aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-09-07 10:29:26 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-09-07 10:29:26 -0400
commit825a7d7492a41640c9c5d97e831f05ca95d0a39b (patch)
treed4a5266dfe472623af4618ff862b4dce9af338c5 /gdb/mi
parent4d944db22c351296bad0b54d6a1857ad1fbde575 (diff)
downloadgdb-825a7d7492a41640c9c5d97e831f05ca95d0a39b.zip
gdb-825a7d7492a41640c9c5d97e831f05ca95d0a39b.tar.gz
gdb-825a7d7492a41640c9c5d97e831f05ca95d0a39b.tar.bz2
gdb: fix indentation in mi/mi-parse.h
Change-Id: Ib841a77a9494648aee9f970141424363664ff6e8
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-parse.h118
1 files changed, 59 insertions, 59 deletions
diff --git a/gdb/mi/mi-parse.h b/gdb/mi/mi-parse.h
index 6bf516c..4a41b30 100644
--- a/gdb/mi/mi-parse.h
+++ b/gdb/mi/mi-parse.h
@@ -35,67 +35,67 @@ struct mi_timestamp
};
enum mi_command_type
- {
- MI_COMMAND, CLI_COMMAND
- };
+{
+ MI_COMMAND, CLI_COMMAND
+};
struct mi_parse
- {
- /* Attempt to parse CMD creating a ``struct mi_parse''. If CMD is
- invalid, an exception is thrown. For an MI_COMMAND COMMAND, ARGS
- and OP are initialized. Un-initialized fields are zero. *TOKEN is
- set to the token, even if an exception is thrown. */
- mi_parse (const char *cmd, std::string *token);
-
- /* Create an mi_parse object given the command name and a vector
- of arguments. Unlike with the other constructor, here the
- arguments are treated "as is" -- no escape processing is
- done. */
- mi_parse (gdb::unique_xmalloc_ptr<char> command,
- std::vector<gdb::unique_xmalloc_ptr<char>> args);
-
- ~mi_parse ();
-
- DISABLE_COPY_AND_ASSIGN (mi_parse);
-
- /* Split the arguments into argc/argv and store the result. */
- void parse_argv ();
-
- /* Return the full argument string, as used by commands which are
- implemented as CLI commands. */
- const char *args ();
-
- enum mi_command_type op = MI_COMMAND;
- /* This is not std::string because it avoids a copy in the Python
- API case. */
- gdb::unique_xmalloc_ptr<char> command;
- std::string token;
- const struct mi_command *cmd = nullptr;
- struct mi_timestamp *cmd_start = nullptr;
- char **argv = nullptr;
- int argc = 0;
- int all = 0;
- int thread_group = -1; /* At present, the same as inferior number. */
- int thread = -1;
- int frame = -1;
-
- /* The language that should be used to evaluate the MI command.
- Ignored if set to language_unknown. */
- enum language language = language_unknown;
-
- private:
-
- /* Helper methods for parsing arguments. Each takes the argument
- to be parsed. It will either set a member of this object, or
- throw an exception on error. In each case, *ENDP, if non-NULL,
- will be updated to just after the argument text. */
- void set_thread_group (const char *arg, char **endp);
- void set_thread (const char *arg, char **endp);
- void set_frame (const char *arg, char **endp);
- void set_language (const char *arg, const char **endp);
-
- std::string m_args;
- };
+{
+ /* Attempt to parse CMD creating a ``struct mi_parse''. If CMD is
+ invalid, an exception is thrown. For an MI_COMMAND COMMAND, ARGS
+ and OP are initialized. Un-initialized fields are zero. *TOKEN is
+ set to the token, even if an exception is thrown. */
+ mi_parse (const char *cmd, std::string *token);
+
+ /* Create an mi_parse object given the command name and a vector
+ of arguments. Unlike with the other constructor, here the
+ arguments are treated "as is" -- no escape processing is
+ done. */
+ mi_parse (gdb::unique_xmalloc_ptr<char> command,
+ std::vector<gdb::unique_xmalloc_ptr<char>> args);
+
+ ~mi_parse ();
+
+ DISABLE_COPY_AND_ASSIGN (mi_parse);
+
+ /* Split the arguments into argc/argv and store the result. */
+ void parse_argv ();
+
+ /* Return the full argument string, as used by commands which are
+ implemented as CLI commands. */
+ const char *args ();
+
+ enum mi_command_type op = MI_COMMAND;
+ /* This is not std::string because it avoids a copy in the Python
+ API case. */
+ gdb::unique_xmalloc_ptr<char> command;
+ std::string token;
+ const struct mi_command *cmd = nullptr;
+ struct mi_timestamp *cmd_start = nullptr;
+ char **argv = nullptr;
+ int argc = 0;
+ int all = 0;
+ int thread_group = -1; /* At present, the same as inferior number. */
+ int thread = -1;
+ int frame = -1;
+
+ /* The language that should be used to evaluate the MI command.
+ Ignored if set to language_unknown. */
+ enum language language = language_unknown;
+
+private:
+
+ /* Helper methods for parsing arguments. Each takes the argument
+ to be parsed. It will either set a member of this object, or
+ throw an exception on error. In each case, *ENDP, if non-NULL,
+ will be updated to just after the argument text. */
+ void set_thread_group (const char *arg, char **endp);
+ void set_thread (const char *arg, char **endp);
+ void set_frame (const char *arg, char **endp);
+ void set_language (const char *arg, const char **endp);
+
+ std::string m_args;
+};
/* Parse a string argument into a print_values value. */