anjuta r4341 - in trunk: . libanjuta/interfaces plugins/debug-manager



Author: sgranjoux
Date: Tue Oct 14 20:58:58 2008
New Revision: 4341
URL: http://svn.gnome.org/viewvc/anjuta?rev=4341&view=rev

Log:
	* plugins/debug-manager/plugin.c,
	libanjuta/interfaces/libanjuta.idl:
	Add some functions to control debug manager


Modified:
   trunk/ChangeLog
   trunk/libanjuta/interfaces/libanjuta.idl
   trunk/plugins/debug-manager/plugin.c

Modified: trunk/libanjuta/interfaces/libanjuta.idl
==============================================================================
--- trunk/libanjuta/interfaces/libanjuta.idl	(original)
+++ trunk/libanjuta/interfaces/libanjuta.idl	Tue Oct 14 20:58:58 2008
@@ -4467,6 +4467,42 @@
 	* new breakpoint and deleted breakpoint.
 	*/
 	void ::breakpoint_changed (IAnjutaDebuggerBreakpointItem *breakpoint);
+	
+	/**
+	* ianjuta_debug_manager_start:
+	* @obj: Self
+	* @uri: uri of the target
+	* @err: Error propagation and reporting.
+	* 
+	* Start the debugger of the given uri
+	*
+	* Returns: TRUE if sucessful, other FALSE.
+	*/
+	gboolean start (const gchar *uri);
+
+   /**
+	* ianjuta_debug_manager_start_remote:
+	* @obj: Self
+	* @server: server (IP address:port)
+	* @uri: uri of the local target
+	* @err: Error propagation and reporting.
+	* 
+	* Start the debugger of the given uri
+	*
+	* Returns: TRUE if sucessful, other FALSE.
+	*/
+	gboolean start_remote (const gchar *server, const gchar *uri);
+
+	/**
+	* ianjuta_debug_manager_quit:
+	* @obj: Self
+	* @err: Error propagation and reporting.
+	* 
+	* Quit the debugger, can wait until the debugger is ready.
+	*
+	* Returns: TRUE if sucessful, other FALSE.
+	*/
+	gboolean quit ();
 }
 
 /**

Modified: trunk/plugins/debug-manager/plugin.c
==============================================================================
--- trunk/plugins/debug-manager/plugin.c	(original)
+++ trunk/plugins/debug-manager/plugin.c	Tue Oct 14 20:58:58 2008
@@ -1318,9 +1318,36 @@
 /* Implementation of IAnjutaDebugManager interface
  *---------------------------------------------------------------------------*/
 
+static gboolean
+idebug_manager_start (IAnjutaDebugManager *plugin, const gchar *uri, GError **err)
+{
+	DebugManagerPlugin *self = ANJUTA_PLUGIN_DEBUG_MANAGER (plugin);
+
+	return dma_run_target (self->start, uri);
+}
+
+static gboolean
+idebug_manager_start_remote (IAnjutaDebugManager *plugin, const gchar *server, const gchar *uri, GError **err)
+{
+	DebugManagerPlugin *self = ANJUTA_PLUGIN_DEBUG_MANAGER (plugin);
+
+	return dma_run_remote_target (self->start, server, uri);
+}
+
+static gboolean
+idebug_manager_quit (IAnjutaDebugManager *plugin, GError **err)
+{
+	DebugManagerPlugin *self = ANJUTA_PLUGIN_DEBUG_MANAGER (plugin);
+
+	return dma_quit_debugger (self->start);
+}
+
 static void
 idebug_manager_iface_init (IAnjutaDebugManagerIface *iface)
 {
+	iface->start = idebug_manager_start;
+	iface->start_remote = idebug_manager_start_remote;
+	iface->quit = idebug_manager_quit;
 }
 
 ANJUTA_PLUGIN_BEGIN (DebugManagerPlugin, dma_plugin);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]