[anjuta] debug-manager: Remove rarely used gdb info commands in the GUI



commit 3bb3e74155812992a32094d9180efbe2e7405009
Author: SÃbastien Granjoux <seb sfo free fr>
Date:   Sun Aug 28 10:19:37 2011 +0200

    debug-manager: Remove rarely used gdb info commands in the GUI

 libanjuta/interfaces/libanjuta.idl             |   12 +++
 manuals/anjuta-manual/C/debug-information.page |   65 -------------
 plugins/debug-manager/anjuta-debug-manager.xml |    7 --
 plugins/debug-manager/command.c                |  122 +-----------------------
 plugins/debug-manager/command.h                |    6 -
 plugins/debug-manager/plugin.c                 |  108 +---------------------
 plugins/gdb/debugger.c                         |   71 --------------
 plugins/gdb/debugger.h                         |    6 -
 plugins/gdb/plugin.c                           |   38 +++-----
 9 files changed, 31 insertions(+), 404 deletions(-)
---
diff --git a/libanjuta/interfaces/libanjuta.idl b/libanjuta/interfaces/libanjuta.idl
index 7a07af6..e28b991 100644
--- a/libanjuta/interfaces/libanjuta.idl
+++ b/libanjuta/interfaces/libanjuta.idl
@@ -4369,6 +4369,8 @@ interface IAnjutaDebugger
 	* @err: Error propagation and reporting.
 	* 
 	* Get some information about the one stack frame.
+	* This function has been deprecated and is not used anymore in the
+	* debugger GUI.
 	*
 	* Returns: TRUE if sucessful, otherwise FALSE.
 	*/
@@ -4382,6 +4384,8 @@ interface IAnjutaDebugger
 	* @err: Error propagation and reporting.
 	* 
 	* Get some informatin about a current functin arguments.
+	* This function has been deprecated and is not used anymore in the
+	* debugger GUI.
 	*
 	* Returns: TRUE if sucessful, otherwise FALSE.
 	*/
@@ -4395,6 +4399,8 @@ interface IAnjutaDebugger
 	* @err: Error propagation and reporting.
 	* 
 	* Get back some information about the target
+	* This function has been deprecated and is not used anymore in the
+	* debugger GUI.
 	*
 	* Returns: TRUE if sucessful, otherwise FALSE.
 	*/
@@ -4408,6 +4414,8 @@ interface IAnjutaDebugger
 	* @err: Error propagation and reporting.
 	* 
 	* Get some informatin about a current program.
+	* This function has been deprecated and is not used anymore in the
+	* debugger GUI.
 	*
 	* Returns: TRUE if sucessful, otherwise FALSE.
 	*/
@@ -4421,6 +4429,8 @@ interface IAnjutaDebugger
 	* @err: Error propagation and reporting.
 	* 
 	* Get some informatin about OS structures.
+	* This function has been deprecated and is not used anymore in the
+	* debugger GUI.
 	*
 	* Returns: TRUE if sucessful, otherwise FALSE.
 	*/
@@ -4435,6 +4445,8 @@ interface IAnjutaDebugger
 	* @err: Error propagation and reporting.
 	* 
 	* Get some informatin about variables.
+	* This function has been deprecated and is not used anymore in the
+	* debugger GUI.
 	*
 	* Returns: TRUE if sucessful, otherwise FALSE.
 	*/
diff --git a/manuals/anjuta-manual/C/debug-information.page b/manuals/anjuta-manual/C/debug-information.page
index dd786ae..ff7cdd5 100755
--- a/manuals/anjuta-manual/C/debug-information.page
+++ b/manuals/anjuta-manual/C/debug-information.page
@@ -77,69 +77,4 @@
 
   </section>
 
-
-  <section>
-    <title>Information about used files</title>
-
-    <steps>
-      <item>
-        <p>From the <gui>main menu</gui>, select <guiseq><gui>Debug</gui>
-        <gui>Info</gui><gui>Info Target Files</gui></guiseq>.</p>
-      </item>
-    </steps>
-
-  </section>
-
-  <section>
-   <title>Information about the program</title>
-    <steps>
-      <item>
-        <p>From the <gui>main menu</gui>, select <guiseq><gui>Debug</gui>
-        <gui>Info</gui><gui>Info Program</gui></guiseq>.</p>
-      </item>
-    </steps>
-
-  </section>
- 
-  <section>
-   <title>Information about kernel structure</title>
-    <steps>
-      <item>
-        <p>From the <gui>main menu</gui>, select <guiseq><gui>Debug</gui>
-        <gui>Info</gui><gui>Info Kernel User Struct</gui></guiseq>.</p>
-      </item>
-    </steps>
-  </section>
-
-  <section>
-   <title>Information about global variables</title>
-    <steps>
-      <item>
-        <p>From the <gui>main menu</gui>, select <guiseq><gui>Debug</gui>
-        <gui>Info</gui><gui>Info Global Variables</gui></guiseq>.</p>
-      </item>
-    </steps>
-  </section>
-
-  <section>
-   <title>Information about the current stack frame</title>
-    <steps>
-      <item>
-        <p>From the <gui>main menu</gui>, select <guiseq><gui>Debug</gui>
-        <gui>Info</gui><gui>Info Current Frame</gui></guiseq>.</p>
-      </item>
-    </steps>
-  </section>
-
-  <section>
-   <title>Information about the current function arguments</title>
-    <steps>
-      <item>
-        <p>From the <gui>main menu</gui>, select <guiseq><gui>Debug</gui>
-        <gui>Info</gui><gui>Info Arguments</gui></guiseq>.</p>
-      </item>
-    </steps>
-  </section>
-
-
 </page>
diff --git a/plugins/debug-manager/anjuta-debug-manager.xml b/plugins/debug-manager/anjuta-debug-manager.xml
index 0f4cf23..168e973 100644
--- a/plugins/debug-manager/anjuta-debug-manager.xml
+++ b/plugins/debug-manager/anjuta-debug-manager.xml
@@ -23,13 +23,6 @@
 				<menu name="Info" action="ActionMenuGdbInformation">
 					<menuitem name="Sharedlibs" action="ActionGdbViewSharedlibs" />
 					<menuitem name="Signals" action="ActionGdbViewSignals" />
-					<separator name="separator4"/>
-					<menuitem name="TargetFiles" action="ActionGdbInfoTargetFiles"/>
-					<menuitem name="Program" action="ActionGdbInfoProgram" />
-					<menuitem name="KernelUserStruct" action="ActionGdbInfoKernelUserStruct" />
-					<menuitem name="GlobalVariables" action="ActionGdbInfoGlobalVariables" />
-					<menuitem name="CurrentFrame" action="ActionGdbInfoCurrentFrame" />
-					<menuitem name="FunctionArgs" action="ActionGdbInfoFunctionArgs" />
 				</menu>
 				<separator name="separator6"/>
 				<menuitem name="GdbCommand" action="ActionGdbCommand" />
diff --git a/plugins/debug-manager/command.c b/plugins/debug-manager/command.c
index b5ad54b..2b53679 100644
--- a/plugins/debug-manager/command.c
+++ b/plugins/debug-manager/command.c
@@ -72,18 +72,15 @@ typedef enum
 	REMOVE_BREAK_COMMAND,
 	LIST_BREAK_COMMAND,
 	INFO_SHAREDLIB_COMMAND,
-	INFO_TARGET_COMMAND,
-	INFO_PROGRAM_COMMAND,
-	INFO_UDOT_COMMAND,
 	STEP_IN_COMMAND,   /* Program stopped */
 	STEP_OVER_COMMAND,
 	STEP_OUT_COMMAND,
 	RUN_COMMAND,		
 	RUN_TO_COMMAND,
-	RUN_FROM_COMMAND,			/* 0x20 */
+	RUN_FROM_COMMAND,
 	STEPI_IN_COMMAND,
 	STEPI_OVER_COMMAND,
-	RUN_TO_ADDRESS_COMMAND,
+	RUN_TO_ADDRESS_COMMAND,  /* 0x20 */
 	RUN_FROM_ADDRESS_COMMAND,
 	EXIT_COMMAND,
 	HANDLE_SIGNAL_COMMAND,
@@ -93,16 +90,13 @@ typedef enum
 	SET_THREAD_COMMAND,
 	INFO_THREAD_COMMAND,
 	INFO_SIGNAL_COMMAND,
-	INFO_FRAME_COMMAND,
-	INFO_ARGS_COMMAND,
-	INFO_VARIABLES_COMMAND,
-	SET_FRAME_COMMAND,			/* 0x30 */
+	SET_FRAME_COMMAND,	
 	LIST_FRAME_COMMAND,
 	DUMP_STACK_TRACE_COMMAND,
 	UPDATE_REGISTER_COMMAND,
 	WRITE_REGISTER_COMMAND,
 	EVALUATE_COMMAND,
-	INSPECT_COMMAND,
+	INSPECT_COMMAND,			/* 0x30 */
 	PRINT_COMMAND,
 	CREATE_VARIABLE,
 	EVALUATE_VARIABLE,
@@ -184,15 +178,6 @@ typedef enum
 	DMA_INFO_SHAREDLIB_COMMAND =
 		INFO_SHAREDLIB_COMMAND |
 		NEED_PROGRAM_LOADED | NEED_PROGRAM_STOPPED,
-	DMA_INFO_TARGET_COMMAND =
-		INFO_TARGET_COMMAND |
-		NEED_PROGRAM_LOADED | NEED_PROGRAM_STOPPED,
-	DMA_INFO_PROGRAM_COMMAND =
-		INFO_PROGRAM_COMMAND |
-		NEED_PROGRAM_LOADED | NEED_PROGRAM_STOPPED,
-	DMA_INFO_UDOT_COMMAND =
-		INFO_UDOT_COMMAND |
-		NEED_PROGRAM_LOADED | NEED_PROGRAM_STOPPED,
 	DMA_STEP_IN_COMMAND =
 		STEP_IN_COMMAND | RUN_PROGRAM |
 		NEED_PROGRAM_STOPPED,
@@ -247,15 +232,6 @@ typedef enum
 	DMA_INFO_SIGNAL_COMMAND =
 		INFO_SIGNAL_COMMAND |
 		NEED_PROGRAM_STOPPED,
-	DMA_INFO_FRAME_COMMAND =
-		INFO_FRAME_COMMAND |
-		NEED_PROGRAM_STOPPED,
-	DMA_INFO_ARGS_COMMAND =
-		INFO_ARGS_COMMAND |
-		NEED_PROGRAM_STOPPED,
-	DMA_INFO_VARIABLES_COMMAND =
-		INFO_VARIABLES_COMMAND |
-		NEED_PROGRAM_STOPPED,
 	DMA_SET_FRAME_COMMAND =
 		SET_FRAME_COMMAND |
 		NEED_PROGRAM_STOPPED,
@@ -560,30 +536,6 @@ dma_command_new (DmaDebuggerCommand cmd_type,...)
 		cmd->callback = va_arg (args, IAnjutaDebuggerCallback);
 		cmd->user_data = va_arg (args, gpointer);
 		break;
-	case INFO_FRAME_COMMAND:
-		cmd->callback = va_arg (args, IAnjutaDebuggerCallback);
-		cmd->user_data = va_arg (args, gpointer);
-		break;
-	case INFO_ARGS_COMMAND:
-		cmd->callback = va_arg (args, IAnjutaDebuggerCallback);
-		cmd->user_data = va_arg (args, gpointer);
-		break;
-	case INFO_TARGET_COMMAND:
-		cmd->callback = va_arg (args, IAnjutaDebuggerCallback);
-		cmd->user_data = va_arg (args, gpointer);
-		break;
-	case INFO_PROGRAM_COMMAND:
-		cmd->callback = va_arg (args, IAnjutaDebuggerCallback);
-		cmd->user_data = va_arg (args, gpointer);
-		break;
-	case INFO_UDOT_COMMAND:
-		cmd->callback = va_arg (args, IAnjutaDebuggerCallback);
-		cmd->user_data = va_arg (args, gpointer);
-		break;
-	case INFO_VARIABLES_COMMAND:
-		cmd->callback = va_arg (args, IAnjutaDebuggerCallback);
-		cmd->user_data = va_arg (args, gpointer);
-		break;
 	case SET_FRAME_COMMAND:
 		cmd->data.frame.frame = va_arg (args, guint);
 		break;
@@ -874,42 +826,6 @@ dma_queue_handle_signal (DmaDebuggerQueue *self, const gchar* name, gboolean sto
 }
 
 gboolean
-dma_queue_info_frame (DmaDebuggerQueue *self, guint frame, IAnjutaDebuggerCallback callback , gpointer user_data)
-{
-	return dma_debugger_queue_append (self, dma_command_new (DMA_INFO_FRAME_COMMAND, frame, callback, user_data));
-}
-
-gboolean
-dma_queue_info_args (DmaDebuggerQueue *self, IAnjutaDebuggerCallback callback , gpointer user_data)
-{
-	return dma_debugger_queue_append (self, dma_command_new (DMA_INFO_ARGS_COMMAND, callback, user_data));
-}
-
-gboolean
-dma_queue_info_target (DmaDebuggerQueue *self, IAnjutaDebuggerCallback callback , gpointer user_data)
-{
-	return dma_debugger_queue_append (self, dma_command_new (DMA_INFO_TARGET_COMMAND, callback, user_data));
-}
-
-gboolean
-dma_queue_info_program (DmaDebuggerQueue *self, IAnjutaDebuggerCallback callback , gpointer user_data)
-{
-	return dma_debugger_queue_append (self, dma_command_new (DMA_INFO_PROGRAM_COMMAND, callback, user_data));
-}
-
-gboolean
-dma_queue_info_udot (DmaDebuggerQueue *self, IAnjutaDebuggerCallback callback , gpointer user_data)
-{
-	return dma_debugger_queue_append (self, dma_command_new (DMA_INFO_UDOT_COMMAND, callback, user_data));
-}
-
-gboolean
-dma_queue_info_variables (DmaDebuggerQueue *self, IAnjutaDebuggerCallback callback , gpointer user_data)
-{
-	return dma_debugger_queue_append (self, dma_command_new (DMA_INFO_VARIABLES_COMMAND, callback, user_data));
-}
-
-gboolean
 dma_queue_set_frame (DmaDebuggerQueue *self, guint frame)
 {
 	return dma_debugger_queue_append (self, dma_command_new (DMA_SET_FRAME_COMMAND, frame));
@@ -1081,12 +997,6 @@ dma_command_free (DmaQueueCommand *cmd)
 	case SET_THREAD_COMMAND:
 	case INFO_SIGNAL_COMMAND:
 	case INFO_SHAREDLIB_COMMAND:
-	case INFO_FRAME_COMMAND:
-	case INFO_ARGS_COMMAND:
-	case INFO_TARGET_COMMAND:
-	case INFO_PROGRAM_COMMAND:
-	case INFO_UDOT_COMMAND:
-	case INFO_VARIABLES_COMMAND:
 	case LIST_REGISTER_COMMAND:
 	case UPDATE_REGISTER_COMMAND:
 	    break;
@@ -1347,24 +1257,6 @@ dma_command_run (DmaQueueCommand *cmd, IAnjutaDebugger *debugger,
 	case INFO_SHAREDLIB_COMMAND:
 		ret = ianjuta_debugger_info_sharedlib (debugger, (IAnjutaDebuggerGListCallback)callback, queue, err);	
 		break;
-	case INFO_FRAME_COMMAND:
-		ret = ianjuta_debugger_info_frame (debugger, 0, (IAnjutaDebuggerGListCallback)callback, queue, err);	
-		break;
-	case INFO_ARGS_COMMAND:
-		ret = ianjuta_debugger_info_args (debugger, (IAnjutaDebuggerGListCallback)callback, queue, err);	
-		break;
-	case INFO_TARGET_COMMAND:
-		ret = ianjuta_debugger_info_target (debugger, (IAnjutaDebuggerGListCallback)callback, queue, err);	
-		break;
-	case INFO_PROGRAM_COMMAND:
-		ret = ianjuta_debugger_info_program (debugger, (IAnjutaDebuggerGListCallback)callback, queue, err);	
-		break;
-	case INFO_UDOT_COMMAND:
-		ret = ianjuta_debugger_info_udot (debugger, (IAnjutaDebuggerGListCallback)callback, queue, err);	
-		break;
-	case INFO_VARIABLES_COMMAND:
-		ret = ianjuta_debugger_info_variables (debugger, (IAnjutaDebuggerGListCallback)callback, queue, err);	
-		break;
 	case SET_FRAME_COMMAND:
 		ret = ianjuta_debugger_set_frame (debugger, cmd->data.frame.frame, err);	
 		break;
@@ -1479,12 +1371,6 @@ dma_command_callback (DmaQueueCommand *cmd, const gpointer data, GError *err)
 	case INFO_THREAD_COMMAND:
 	case INFO_SIGNAL_COMMAND:
 	case INFO_SHAREDLIB_COMMAND:
-	case INFO_FRAME_COMMAND:
-	case INFO_ARGS_COMMAND:
-	case INFO_TARGET_COMMAND:
-	case INFO_PROGRAM_COMMAND:
-	case INFO_UDOT_COMMAND:
-	case INFO_VARIABLES_COMMAND:
 	case LIST_FRAME_COMMAND:
 	case DUMP_STACK_TRACE_COMMAND:
 	case LIST_REGISTER_COMMAND:
diff --git a/plugins/debug-manager/command.h b/plugins/debug-manager/command.h
index 0688973..3591c2a 100644
--- a/plugins/debug-manager/command.h
+++ b/plugins/debug-manager/command.h
@@ -91,12 +91,6 @@ gboolean dma_queue_info_thread (DmaDebuggerQueue *self, gint thread, IAnjutaDebu
 gboolean dma_queue_info_signal (DmaDebuggerQueue *self, IAnjutaDebuggerCallback callback , gpointer user_data);
 gboolean dma_queue_info_sharedlib (DmaDebuggerQueue *self, IAnjutaDebuggerCallback callback , gpointer user_data);
 gboolean dma_queue_handle_signal (DmaDebuggerQueue *self, const gchar* name, gboolean stop, gboolean print, gboolean ignore);
-gboolean dma_queue_info_frame (DmaDebuggerQueue *self, guint frame, IAnjutaDebuggerCallback callback , gpointer user_data);
-gboolean dma_queue_info_args (DmaDebuggerQueue *self, IAnjutaDebuggerCallback callback , gpointer user_data);
-gboolean dma_queue_info_target (DmaDebuggerQueue *self, IAnjutaDebuggerCallback callback , gpointer user_data);
-gboolean dma_queue_info_program (DmaDebuggerQueue *self, IAnjutaDebuggerCallback callback , gpointer user_data);
-gboolean dma_queue_info_udot (DmaDebuggerQueue *self, IAnjutaDebuggerCallback callback , gpointer user_data);
-gboolean dma_queue_info_variables (DmaDebuggerQueue *self, IAnjutaDebuggerCallback callback , gpointer user_data);
 gboolean dma_queue_set_frame (DmaDebuggerQueue *self, guint frame);
 gboolean dma_queue_list_frame (DmaDebuggerQueue *self, IAnjutaDebuggerCallback callback , gpointer user_data);
 gboolean dma_queue_dump_stack_trace (DmaDebuggerQueue *self, IAnjutaDebuggerCallback callback , gpointer user_data);
diff --git a/plugins/debug-manager/plugin.c b/plugins/debug-manager/plugin.c
index a7d2e05..e9b5831 100644
--- a/plugins/debug-manager/plugin.c
+++ b/plugins/debug-manager/plugin.c
@@ -57,8 +57,7 @@
  *---------------------------------------------------------------------------*/
 
 #define ICON_FILE "anjuta-debug-manager-plugin-48.png"
-#define UI_FILE PACKAGE_DATA_DIR"/ui/anjuta-debug-manager.xml"
-#define GLADE_FILE PACKAGE_DATA_DIR"/glade/anjuta-debug-manager.ui"
+#define UI_FILE PACKAGE_DATA_DIR "/ui/anjuta-debug-manager.xml"
 
 /* Plugin type
  *---------------------------------------------------------------------------*/
@@ -829,55 +828,6 @@ on_debugger_custom_command_activate (GtkAction * action, DebugManagerPlugin *plu
 	}
 }
 
-/* Info callbacks
- *---------------------------------------------------------------------------*/
-
-static void
-on_debugger_dialog_message (const gpointer data, gpointer user_data, GError* error)
-{
-	const GList *cli_result = data;
-	GtkWindow *parent = GTK_WINDOW (user_data);
-	if (g_list_length ((GList*)cli_result) < 1)
-		return;
-	gdb_info_show_list (parent, (GList*)cli_result, 0, 0);
-}
-
-static void
-on_info_targets_activate (GtkAction *action, DebugManagerPlugin *plugin)
-{
-	dma_queue_info_target (plugin->queue, on_debugger_dialog_message, plugin);
-}
-
-static void
-on_info_program_activate (GtkAction *action, DebugManagerPlugin *plugin)
-{
-	dma_queue_info_program (plugin->queue, on_debugger_dialog_message, plugin);
-}
-
-static void
-on_info_udot_activate (GtkAction *action, DebugManagerPlugin *plugin)
-{
-	dma_queue_info_udot (plugin->queue, on_debugger_dialog_message, plugin);
-}
-
-static void
-on_info_variables_activate (GtkAction *action, DebugManagerPlugin *plugin)
-{
-	dma_queue_info_variables (plugin->queue, on_debugger_dialog_message, plugin);
-}
-
-static void
-on_info_frame_activate (GtkAction *action, DebugManagerPlugin *plugin)
-{
-	dma_queue_info_frame (plugin->queue, 0, on_debugger_dialog_message, plugin);
-}
-
-static void
-on_info_args_activate (GtkAction *action, DebugManagerPlugin *plugin)
-{
-	dma_queue_info_args (plugin->queue, on_debugger_dialog_message, plugin);
-}
-
 /* Other informations
  *---------------------------------------------------------------------------*/
 
@@ -986,38 +936,6 @@ static GtkActionEntry actions_loaded[] =
 		NULL
 	},
 	{
-		"ActionGdbInfoTargetFiles",
-		NULL,
-		N_("Info _Target Files"),
-		NULL,
-		N_("Display information on the files the debugger is active with"),
-		G_CALLBACK (on_info_targets_activate)
-	},
-	{
-		"ActionGdbInfoProgram",
-		NULL,
-		N_("Info _Program"),
-		NULL,
-		N_("Display information on the execution status of the program"),
-		G_CALLBACK (on_info_program_activate)
-	},
-	{
-		"ActionGdbInfoKernelUserStruct",
-		NULL,
-		N_("Info _Kernel User Struct"),
-		NULL,
-		N_("Display the contents of kernel 'struct user' for current child"),
-		G_CALLBACK (on_info_udot_activate)
-	},
-/*	{
-		"ActionGdbExamineMemory",
-		NULL,
-		N_("Examine _Memory"),
-		NULL,
-		N_("Display accessible memory"),
-		G_CALLBACK (on_info_memory_activate)
-	},*/
-	{
 		"ActionGdbViewSharedlibs",
 		NULL,
 		N_("Shared Libraries"),
@@ -1110,30 +1028,6 @@ static GtkActionEntry actions_stopped[] =
 		NULL
 	},
 	{
-		"ActionGdbInfoGlobalVariables",
-		NULL,
-		N_("Info _Global Variables"),
-		NULL,
-		N_("Display all global and static variables of the program"),
-		G_CALLBACK (on_info_variables_activate)
-	},
-	{
-		"ActionGdbInfoCurrentFrame",
-		NULL,
-		N_("Info _Current Frame"),
-		NULL,
-		N_("Display information about the current frame of execution"),
-		G_CALLBACK (on_info_frame_activate)
-	},
-	{
-		"ActionGdbInfoFunctionArgs",
-		NULL,
-		N_("Info Function _Arguments"),
-		NULL,
-		N_("Display function arguments of the current frame"),
-		G_CALLBACK (on_info_args_activate)
-	},
-	{
 		"ActionGdbViewSharedlibs",
 		NULL,
 		N_("Shared Libraries"),
diff --git a/plugins/gdb/debugger.c b/plugins/gdb/debugger.c
index 2ecb400..898a6db 100644
--- a/plugins/gdb/debugger.c
+++ b/plugins/gdb/debugger.c
@@ -3032,27 +3032,6 @@ debugger_info_finish (Debugger *debugger, const GDBMIValue *mi_results, const GL
 }
 
 void
-debugger_info_frame (Debugger *debugger, guint frame, IAnjutaDebuggerGListCallback callback, gpointer user_data)
-{
-	gchar *buff;
-	
-	DEBUG_PRINT ("%s", "In function: debugger_info_frame()");
-
-	g_return_if_fail (IS_DEBUGGER (debugger));
-
-	if (frame == 0)
-	{
-		buff = g_strdup_printf("info frame");
-	}
-	else
-	{
-		buff = g_strdup_printf ("info frame %d", frame);
-	}
-	debugger_queue_command (debugger, buff, DEBUGGER_COMMAND_NO_ERROR, (DebuggerParserFunc)debugger_info_finish, (IAnjutaDebuggerCallback)callback, user_data);
-	g_free (buff);
-}
-
-void
 debugger_info_signal (Debugger *debugger, IAnjutaDebuggerGListCallback callback, gpointer user_data)
 {
 	DEBUG_PRINT ("%s", "In function: debugger_info_signal()");
@@ -3075,56 +3054,6 @@ debugger_info_sharedlib (Debugger *debugger, IAnjutaDebuggerGListCallback callba
 	debugger_queue_command (debugger, buff, DEBUGGER_COMMAND_NO_ERROR, (DebuggerParserFunc)debugger_info_finish, (IAnjutaDebuggerCallback)callback, user_data);	g_free (buff);
 }
 
-void
-debugger_info_args (Debugger *debugger, IAnjutaDebuggerGListCallback callback, gpointer user_data)
-{
-	DEBUG_PRINT ("%s", "In function: debugger_info_args()");
-
-	g_return_if_fail (IS_DEBUGGER (debugger));
-
-	debugger_queue_command (debugger, "info args", DEBUGGER_COMMAND_NO_ERROR, (DebuggerParserFunc)debugger_info_finish, (IAnjutaDebuggerCallback)callback, user_data);
-}
-
-void
-debugger_info_target (Debugger *debugger, IAnjutaDebuggerGListCallback callback, gpointer user_data)
-{
-	DEBUG_PRINT ("%s", "In function: debugger_info_target()");
-
-	g_return_if_fail (IS_DEBUGGER (debugger));
-
-	debugger_queue_command (debugger, "info target", DEBUGGER_COMMAND_NO_ERROR, (DebuggerParserFunc)debugger_info_finish, (IAnjutaDebuggerCallback)callback, user_data);
-}
-
-void
-debugger_info_program (Debugger *debugger, IAnjutaDebuggerGListCallback callback, gpointer user_data)
-{
-	DEBUG_PRINT ("%s", "In function: debugger_info_program()");
-
-	g_return_if_fail (IS_DEBUGGER (debugger));
-
-	debugger_queue_command (debugger, "info program", DEBUGGER_COMMAND_NO_ERROR, (DebuggerParserFunc)debugger_info_finish, (IAnjutaDebuggerCallback)callback, user_data);
-}
-
-void
-debugger_info_udot (Debugger *debugger, IAnjutaDebuggerGListCallback callback, gpointer user_data)
-{
-	DEBUG_PRINT ("%s", "In function: debugger_info_udot()");
-
-	g_return_if_fail (IS_DEBUGGER (debugger));
-
-	debugger_queue_command (debugger, "info udot", DEBUGGER_COMMAND_NO_ERROR, (DebuggerParserFunc)debugger_info_finish, (IAnjutaDebuggerCallback)callback, user_data);
-}
-
-void
-debugger_info_variables (Debugger *debugger, IAnjutaDebuggerGListCallback callback, gpointer user_data)
-{
-	DEBUG_PRINT ("%s", "In function: debugger_info_variables()");
-
-	g_return_if_fail (IS_DEBUGGER (debugger));
-
-	debugger_queue_command (debugger, "info variables", DEBUGGER_COMMAND_NO_ERROR, (DebuggerParserFunc)debugger_info_finish, (IAnjutaDebuggerCallback)callback, user_data);
-}
-
 static void
 debugger_read_memory_finish (Debugger *debugger, const GDBMIValue *mi_results, const GList *cli_results, GError *error)
 
diff --git a/plugins/gdb/debugger.h b/plugins/gdb/debugger.h
index 85f67b8..211255c 100644
--- a/plugins/gdb/debugger.h
+++ b/plugins/gdb/debugger.h
@@ -164,13 +164,7 @@ void debugger_evaluate (Debugger *debugger, const gchar* name, IAnjutaDebuggerGC
 void debugger_list_local (Debugger *debugger, IAnjutaDebuggerGListCallback func, gpointer user_data);
 void debugger_list_argument (Debugger *debugger, IAnjutaDebuggerGListCallback func, gpointer user_data);
 void debugger_info_signal (Debugger *debugger, IAnjutaDebuggerGListCallback func, gpointer user_data);
-void debugger_info_frame (Debugger *debugger, guint frame, IAnjutaDebuggerGListCallback func, gpointer user_data);
 void debugger_info_sharedlib (Debugger *debugger, IAnjutaDebuggerGListCallback func, gpointer user_data);
-void debugger_info_args (Debugger *debugger, IAnjutaDebuggerGListCallback func, gpointer user_data);
-void debugger_info_target (Debugger *debugger, IAnjutaDebuggerGListCallback func, gpointer user_data);
-void debugger_info_program (Debugger *debugger, IAnjutaDebuggerGListCallback func, gpointer user_data);
-void debugger_info_udot (Debugger *debugger, IAnjutaDebuggerGListCallback func, gpointer user_data);
-void debugger_info_variables (Debugger *debugger, IAnjutaDebuggerGListCallback func, gpointer user_data);
 void debugger_inspect_memory (Debugger *debugger, gulong address, guint length, IAnjutaDebuggerMemoryCallback func, gpointer user_data);
 void debugger_disassemble (Debugger *debugger, gulong address, guint length, IAnjutaDebuggerInstructionCallback func, gpointer user_data);
 
diff --git a/plugins/gdb/plugin.c b/plugins/gdb/plugin.c
index fd3c4e2..ac2b175 100644
--- a/plugins/gdb/plugin.c
+++ b/plugins/gdb/plugin.c
@@ -76,6 +76,8 @@ struct _GdbPluginClass
 	AnjutaPluginClass parent_class;
 };
 
+#define UNIMPLEMENTED  G_STMT_START { g_warning (G_STRLOC": unimplemented"); } G_STMT_END
+
 /* Terminal functions
  *---------------------------------------------------------------------------*/
 
@@ -729,61 +731,49 @@ idebugger_handle_signal (IAnjutaDebugger *plugin, const gchar* name, gboolean st
 static gboolean
 idebugger_info_frame (IAnjutaDebugger *plugin, guint frame, IAnjutaDebuggerGListCallback callback , gpointer user_data, GError **err)
 {
-	GdbPlugin *this = ANJUTA_PLUGIN_GDB (plugin);
-
-	debugger_info_frame (this->debugger, frame, callback, user_data);
+	UNIMPLEMENTED;
 
-	return TRUE;
+	return FALSE;
 }
 
 static gboolean
 idebugger_info_args (IAnjutaDebugger *plugin, IAnjutaDebuggerGListCallback callback , gpointer user_data, GError **err)
 {
-	GdbPlugin *this = ANJUTA_PLUGIN_GDB (plugin);
+	UNIMPLEMENTED;
 
-	debugger_info_args (this->debugger, callback, user_data);
-
-	return TRUE;
+	return FALSE;
 }
 
 static gboolean
 idebugger_info_target (IAnjutaDebugger *plugin, IAnjutaDebuggerGListCallback callback , gpointer user_data, GError **err)
 {
-	GdbPlugin *this = ANJUTA_PLUGIN_GDB (plugin);
+	UNIMPLEMENTED;
 
-	debugger_info_target (this->debugger, callback, user_data);
-
-	return TRUE;
+	return FALSE;
 }
 
 static gboolean
 idebugger_info_program (IAnjutaDebugger *plugin, IAnjutaDebuggerGListCallback callback , gpointer user_data, GError **err)
 {
-	GdbPlugin *this = ANJUTA_PLUGIN_GDB (plugin);
-
-	debugger_info_program (this->debugger, callback, user_data);
+	UNIMPLEMENTED;
 
-	return TRUE;
+	return FALSE;
 }
 
 static gboolean
 idebugger_info_udot (IAnjutaDebugger *plugin, IAnjutaDebuggerGListCallback callback , gpointer user_data, GError **err)
 {
-	GdbPlugin *this = ANJUTA_PLUGIN_GDB (plugin);
-
-	debugger_info_udot (this->debugger, callback, user_data);
+	UNIMPLEMENTED;
 
-	return TRUE;
+	return FALSE;
 }
 
 static gboolean
 idebugger_info_variables (IAnjutaDebugger *plugin, IAnjutaDebuggerGListCallback callback , gpointer user_data, GError **err)
 {
-	GdbPlugin *this = ANJUTA_PLUGIN_GDB (plugin);
+	UNIMPLEMENTED;
 
-	debugger_info_variables (this->debugger, callback, user_data);
-
-	return TRUE;
+	return FALSE;
 }
 
 static gboolean



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