OLD | NEW |
1 /* MI Command Set - MI Command Parser. | 1 /* MI Command Set - MI Command Parser. |
2 Copyright (C) 2000, 2007-2012 Free Software Foundation, Inc. | 2 Copyright (C) 2000, 2007-2012 Free Software Foundation, Inc. |
3 Contributed by Cygnus Solutions (a Red Hat company). | 3 Contributed by Cygnus Solutions (a Red Hat company). |
4 | 4 |
5 This file is part of GDB. | 5 This file is part of GDB. |
6 | 6 |
7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
10 (at your option) any later version. | 10 (at your option) any later version. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 /* Attempts to parse CMD returning a ``struct mi_parse''. If CMD is | 55 /* Attempts to parse CMD returning a ``struct mi_parse''. If CMD is |
56 invalid, an exception is thrown. For an MI_COMMAND COMMAND, ARGS | 56 invalid, an exception is thrown. For an MI_COMMAND COMMAND, ARGS |
57 and OP are initialized. Un-initialized fields are zero. *TOKEN is | 57 and OP are initialized. Un-initialized fields are zero. *TOKEN is |
58 set to the token, even if an exception is thrown. It is allocated | 58 set to the token, even if an exception is thrown. It is allocated |
59 with xmalloc; it must either be freed with xfree, or assigned to | 59 with xmalloc; it must either be freed with xfree, or assigned to |
60 the TOKEN field of the resultant mi_parse object, to be freed by | 60 the TOKEN field of the resultant mi_parse object, to be freed by |
61 mi_parse_free. */ | 61 mi_parse_free. */ |
62 | 62 |
63 extern struct mi_parse *mi_parse (char *cmd, char **token); | 63 extern struct mi_parse *mi_parse (char *cmd, char **token); |
64 | 64 |
65 /* Free a command returned by mi_parse_command. */ | 65 /* Free a command returned by mi_parse_command. */ |
66 | 66 |
67 extern void mi_parse_free (struct mi_parse *cmd); | 67 extern void mi_parse_free (struct mi_parse *cmd); |
68 | 68 |
69 #endif | 69 #endif |
OLD | NEW |