This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 10/13] script language API for GDB: top.c changes
- From: Doug Evans <xdje42 at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 10 Dec 2013 21:11:09 -0800
- Subject: [PATCH v2 10/13] script language API for GDB: top.c changes
- Authentication-results: sourceware.org; auth=none
This patch contains the changes to top.c.
The #ifdef HAVE_PYTHON has been removed, and the "finish initialization"
script made non-python-specific.
Changes from v1:
- updates for scripting -> extension renaming
2013-12-10 Doug Evans <xdje42@gmail.com>
* top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
finish_python_initialization. Replace with call to
finish_ext_lang_initialization.
diff --git a/gdb/top.c b/gdb/top.c
index 8ce1a9f..15d29de 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1860,11 +1860,9 @@ gdb_init (char *argv0)
if (deprecated_init_ui_hook)
deprecated_init_ui_hook (argv0);
-#ifdef HAVE_PYTHON
- /* Python initialization can require various commands to be
+ /* Python initialization, for example, can require various commands to be
installed. For example "info pretty-printer" needs the "info"
prefix to be installed. Keep things simple and just do final
- python initialization here. */
- finish_python_initialization ();
-#endif
+ script initialization here. */
+ finish_ext_lang_initialization ();
}