| OLD | NEW |
| 1 /* CLI Definitions for GDB, the GNU debugger. | 1 /* CLI Definitions for GDB, the GNU debugger. |
| 2 | 2 |
| 3 Copyright (c) 2002-2003, 2007-2012 Free Software Foundation, Inc. | 3 Copyright (c) 2002-2003, 2007-2012 Free Software Foundation, Inc. |
| 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. |
| 11 | 11 |
| 12 This program is distributed in the hope that it will be useful, | 12 This program is distributed in the hope that it will be useful, |
| 13 but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 GNU General Public License for more details. | 15 GNU General Public License for more details. |
| 16 | 16 |
| 17 You should have received a copy of the GNU General Public License | 17 You should have received a copy of the GNU General Public License |
| 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | 19 |
| 20 #include "defs.h" | 20 #include "defs.h" |
| 21 #include "interps.h" | 21 #include "interps.h" |
| 22 #include "wrapper.h" | |
| 23 #include "event-top.h" | 22 #include "event-top.h" |
| 24 #include "ui-out.h" | 23 #include "ui-out.h" |
| 25 #include "cli-out.h" | 24 #include "cli-out.h" |
| 26 #include "top.h" /* for "execute_command" */ | 25 #include "top.h" /* for "execute_command" */ |
| 27 #include "gdb_string.h" | 26 #include "gdb_string.h" |
| 28 #include "exceptions.h" | 27 #include "exceptions.h" |
| 29 | 28 |
| 30 struct ui_out *cli_uiout; | 29 struct ui_out *cli_uiout; |
| 31 | 30 |
| 32 /* These are the ui_out and the interpreter for the console | 31 /* These are the ui_out and the interpreter for the console |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 cli_ui_out /* ui_out_proc */ | 154 cli_ui_out /* ui_out_proc */ |
| 156 }; | 155 }; |
| 157 struct interp *cli_interp; | 156 struct interp *cli_interp; |
| 158 | 157 |
| 159 /* Create a default uiout builder for the CLI. */ | 158 /* Create a default uiout builder for the CLI. */ |
| 160 cli_uiout = cli_out_new (gdb_stdout); | 159 cli_uiout = cli_out_new (gdb_stdout); |
| 161 cli_interp = interp_new (INTERP_CONSOLE, &procs); | 160 cli_interp = interp_new (INTERP_CONSOLE, &procs); |
| 162 | 161 |
| 163 interp_add (cli_interp); | 162 interp_add (cli_interp); |
| 164 } | 163 } |
| OLD | NEW |