[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 149240] Locals in "Variable tree" aren't updated sometimes,
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2007-08-28 22:18:57
Message-ID: 20070828221857.2564.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=149240
------- Additional Comments From apaku gmx de 2007-08-29 00:18 -------
Hmm interesting. Using this little change to your app I could "fix" the problem in \
kdevelop:
--- report_old/bug149240.cpp 2007-08-27 12:05:07.000000000 +0200
+++ report/bug149240.cpp 2007-08-29 00:11:27.000000000 +0200
@ -22,7 +22,7 @
{
if(m_buf)
free(m_buf);
- m_size = (len+17) & ~0xF;
+ m_size = (len+1)*sizeof(char);
m_buf = (char*)malloc(m_size);
m_len = len;
memcpy(m_buf, s, m_len);
@ -33,7 +33,7 @
string(dword size = 0)
{
- m_size = (size + 16) & ~0xF;
+ m_size = size*sizeof(char);
m_len = 0;
m_buf = (char*)malloc(m_size);
m_buf[0] = 0;
And the full GDB output gives a hint that GDB doesn't report a change for m_size and \
m_buf variables when stepping over the assignment in line 67. So this looks like a \
gdb-mi bug (I'm using gdb 6.6 here) not a kdevelop problem. This can also be seen in \
the variables view, only the watch (which is always evaluated) and the m_len member \
are highlighted "red" indicating they have changed.
_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic