Patch #2236 2007-11-08 16:00

ramazank

Refines watching of wsString objects in debugger
Download
2236-Refines_watchi.patch (715 bytes)
Category
Application::Refinement
Status
Accepted
Close date
2007-11-15 12:54
Assigned to
 
Index: src/scripts/gdb_types.script
===================================================================
--- src/scripts/gdb_types.script    (revision 4599)
+++ src/scripts/gdb_types.script    (working copy)
@@ -45,11 +45,11 @@
     if (type.Find(_T("*"), false) > 0)
         oper = _T("->");
 
-    local result = _T("output /c ") + a_str + oper + _T("c_str()[") + start + _T("]@");
+    local result = _T("output /c ") + a_str + oper + _T("m_pchData[") + start + _T("]@");
     if (count != 0)
         result = result + count;
     else
-        result = result + a_str + oper + _T("size()");
+        result = result + _T("((wxStringData*)") + a_str + oper + _T("m_pchData - 1)->nDataLength");
     return result;
 }
ramazank 2007-11-08 16:05

Related forum topic

Can't see value of unicode strings while debugging

http://forums.codeblocks.org/index.php/topic,6587.0.html

mandrav 2007-11-15 12:54

Thank you.