diff options
author | Doug Evans <xdje42@gmail.com> | 2014-05-13 19:44:51 -0700 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-05-13 19:44:51 -0700 |
commit | 75ddda778c7fcdffea72615bc5b89d17bd107927 (patch) | |
tree | acad775e46bb589928764537f6f1cc33f0d0e6dc /gdb | |
parent | 5a9b37037831a93767513b080a0e4eeb4080ff7a (diff) | |
download | gdb-75ddda778c7fcdffea72615bc5b89d17bd107927.zip gdb-75ddda778c7fcdffea72615bc5b89d17bd107927.tar.gz gdb-75ddda778c7fcdffea72615bc5b89d17bd107927.tar.bz2 |
* python/py-cmd.c (cmdpy_completer): Add comment.
(completers): Make const.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/python/py-cmd.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c0c7f3f..c7a7667 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-05-13 Doug Evans <xdje42@gmail.com> + + * python/py-cmd.c (cmdpy_completer): Add comment. + (completers): Make const. + 2014-05-13 Simon Marchi <simon.marchi@ericsson.com> * infrun.c (resume): Remove should_resume (unused). Move up diff --git a/gdb/python/py-cmd.c b/gdb/python/py-cmd.c index c24bca7..524ba5a 100644 --- a/gdb/python/py-cmd.c +++ b/gdb/python/py-cmd.c @@ -32,13 +32,15 @@ /* Struct representing built-in completion types. */ struct cmdpy_completer { - /* Python symbol name. */ + /* Python symbol name. + This isn't a const char * for Python 2.4's sake. + PyModule_AddIntConstant only takes a char *, sigh. */ char *name; /* Completion function. */ completer_ftype *completer; }; -static struct cmdpy_completer completers[] = +static const struct cmdpy_completer completers[] = { { "COMPLETE_NONE", noop_completer }, { "COMPLETE_FILENAME", filename_completer }, |