| OLD | NEW |
| 1 /* gdb commands implemented in Python | 1 /* gdb commands implemented in Python |
| 2 | 2 |
| 3 Copyright (C) 2008-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2008-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. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "cli/cli-decode.h" | 28 #include "cli/cli-decode.h" |
| 29 #include "completer.h" | 29 #include "completer.h" |
| 30 #include "language.h" | 30 #include "language.h" |
| 31 | 31 |
| 32 /* Struct representing built-in completion types. */ | 32 /* Struct representing built-in completion types. */ |
| 33 struct cmdpy_completer | 33 struct cmdpy_completer |
| 34 { | 34 { |
| 35 /* Python symbol name. */ | 35 /* Python symbol name. */ |
| 36 char *name; | 36 char *name; |
| 37 /* Completion function. */ | 37 /* Completion function. */ |
| 38 char **(*completer) (struct cmd_list_element *, char *, char *); | 38 completer_ftype *completer; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 static struct cmdpy_completer completers[] = | 41 static struct cmdpy_completer completers[] = |
| 42 { | 42 { |
| 43 { "COMPLETE_NONE", noop_completer }, | 43 { "COMPLETE_NONE", noop_completer }, |
| 44 { "COMPLETE_FILENAME", filename_completer }, | 44 { "COMPLETE_FILENAME", filename_completer }, |
| 45 { "COMPLETE_LOCATION", location_completer }, | 45 { "COMPLETE_LOCATION", location_completer }, |
| 46 { "COMPLETE_COMMAND", command_completer }, | 46 { "COMPLETE_COMMAND", command_completer }, |
| 47 { "COMPLETE_SYMBOL", make_symbol_completion_list_fn }, | 47 { "COMPLETE_SYMBOL", make_symbol_completion_list_fn }, |
| 48 }; | 48 }; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 else | 196 else |
| 197 { | 197 { |
| 198 Py_XDECREF (ptype); | 198 Py_XDECREF (ptype); |
| 199 Py_XDECREF (pvalue); | 199 Py_XDECREF (pvalue); |
| 200 Py_XDECREF (ptraceback); | 200 Py_XDECREF (ptraceback); |
| 201 error ("%s", msg); | 201 error ("%s", msg); |
| 202 } | 202 } |
| 203 } | 203 } |
| 204 | 204 |
| 205 Py_DECREF (result); | 205 Py_DECREF (result); |
error: old chunk mismatch |
None
| OLD | NEW |