Patch #2236 2007-11-08 16:00
ramazank
Refines watching of wsString objects in debugger- Download
- 2236-Refines_watchi.patch (715 bytes)
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;
}
History
ramazank 2007-11-08 16:05
Related forum topic
Can't see value of unicode strings while debugging
mandrav 2007-11-15 12:54
Thank you.