anjuta r3952 - in branches/anjuta-2-4: . plugins/debug-manager
- From: sgranjoux svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r3952 - in branches/anjuta-2-4: . plugins/debug-manager
- Date: Sun, 25 May 2008 11:10:27 +0000 (UTC)
Author: sgranjoux
Date: Sun May 25 11:10:27 2008
New Revision: 3952
URL: http://svn.gnome.org/viewvc/anjuta?rev=3952&view=rev
Log:
* plugins/debug-manager/debug_tree.c:
Fix a crash when changing a watch while debugger is stopped
Modified:
branches/anjuta-2-4/ChangeLog
branches/anjuta-2-4/plugins/debug-manager/debug_tree.c
Modified: branches/anjuta-2-4/plugins/debug-manager/debug_tree.c
==============================================================================
--- branches/anjuta-2-4/plugins/debug-manager/debug_tree.c (original)
+++ branches/anjuta-2-4/plugins/debug-manager/debug_tree.c Sun May 25 11:10:27 2008
@@ -637,7 +637,7 @@
gtk_tree_model_get (model, iter, DTREE_ENTRY_COLUMN, &data, -1);
- if ((data != NULL) && (data->name != NULL))
+ if ((data != NULL) && (data->name != NULL) && (tree->debugger != NULL))
{
DmaVariablePacket *pack;
@@ -648,10 +648,6 @@
(IAnjutaDebuggerCallback)gdb_var_list_children,
pack);
}
- else
- {
- DEBUG_PRINT("Unexpected expand on undefined variable");
- }
return;
}
@@ -699,7 +695,7 @@
DmaVariablePacket *tran;
gtk_tree_model_get (model, &iter, DTREE_ENTRY_COLUMN, &item, -1);
- if ((item != NULL) && (item->name != NULL))
+ if ((item != NULL) && (item->name != NULL) && (tree->debugger != NULL))
{
/* Variable is valid */
dma_queue_assign_variable (tree->debugger, item->name, text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]