Patch #1113 2006-06-09 12:37

kaischroeder

Bugfix: change value in debug->watches did not work
Download
1113-Bugfix_change.patch (646 bytes)
Category
 
Status
Accepted
Close date
2006-06-09 13:45
Assigned to
 
Index: src/plugins/debuggergdb/debuggertree.cpp
===================================================================
--- src/plugins/debuggergdb/debuggertree.cpp    (revision 2539)
+++ src/plugins/debuggergdb/debuggertree.cpp    (working copy)
@@ -795,7 +795,7 @@
         FixupVarNameForChange(itemtext);
         if (!itemtext.IsEmpty())
             var = itemtext;
-        while ((parent = m_pTree->GetItemParent(item)) && parent.IsOk())
+        while ((parent = m_pTree->GetItemParent(item)) && parent.IsOk() && parent != m_pTree->GetRootItem())
         {
             item = parent;
             wxString itemtext = m_pTree->GetItemText(item);
kaischroeder 2006-06-09 12:39

C::B sent the command

"set variable Watches.test.value=0"

instead of the desired command

"set variable test.value=0"

this patch fixes this