public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v1 10/13] script language API for GDB: top.c changes
@ 2013-12-06  5:53 xdje42
  0 siblings, 0 replies; only message in thread
From: xdje42 @ 2013-12-06  5:53 UTC (permalink / raw)
  To: gdb-patches

This patch contains the changes to top.c.
The #ifdef HAVE_PYTHON has been removed, and the "finish initialization"
script made non-python-specific.

2013-12-05  Doug Evans  <xdje42@gmail.com>

	* top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
	finish_python_initialization.  Replace with call to
	finish_script_initialization.

diff --git a/gdb/top.c b/gdb/top.c
index 8ce1a9f..52b0fd6 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_script_initialization ();
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-12-06  5:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-06  5:53 [PATCH v1 10/13] script language API for GDB: top.c changes xdje42

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).