diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2012-09-21 12:57:34 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2012-09-21 12:57:34 +0000 |
commit | 810849a34e6e2b0f488c0ccbbf45ee324cd5182c (patch) | |
tree | e8c9104cc2f972836d76446e272fa5250dffc426 /gdb/python/python.c | |
parent | a3569abd1ae58f8a8226722910cb365c4dadc698 (diff) | |
download | gdb-810849a34e6e2b0f488c0ccbbf45ee324cd5182c.zip gdb-810849a34e6e2b0f488c0ccbbf45ee324cd5182c.tar.gz gdb-810849a34e6e2b0f488c0ccbbf45ee324cd5182c.tar.bz2 |
* python/python.c (finalize_python): Only define if HAVE_PYTHON.
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r-- | gdb/python/python.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index c66dc60..97f8506 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1266,6 +1266,8 @@ user_show_python (char *args, int from_tty) /* Initialize the Python code. */ +#ifdef HAVE_PYTHON + /* This is installed as a final cleanup and cleans up the interpreter. This lets Python's 'atexit' work. */ @@ -1283,6 +1285,7 @@ finalize_python (void *ignore) Py_Finalize (); } +#endif /* Provide a prototype to silence -Wmissing-prototypes. */ extern initialize_file_ftype _initialize_python; |