Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Parse error in debugger
Parse error in debugger [message #42427] |
Thu, 13 March 2014 15:09 |
busiek
Messages: 68 Registered: February 2011 Location: Poland
|
Member |
|
|
Hi,
I gave a try to new debugging code on a simple program with a memory leak:
#include <Core/Core.h>
int main(int argc, const char *argv[])
{
Upp::MemoryBreakpoint(628);
int *ptr = new int(1);
ptr = new int(2);
delete ptr;
return 0;
}
Ide crashes with "Parse error". It makes debugger useless for tracking memory leaks.
[Updated on: Thu, 13 March 2014 15:10] Report message to a moderator
|
|
|
Re: Parse error in debugger [message #42428 is a reply to message #42427] |
Thu, 13 March 2014 18:18 |
busiek
Messages: 68 Registered: February 2011 Location: Poland
|
Member |
|
|
I tracked down the error. The error is thrown in ReadNumber() which is used in Gdb.cpp. When I change all ReadNumber() to ReadNumber64() it works ok. Of course this is not a solution. The problem is that on 64-bit architecture addresses and thread ids are too long to read it by ReadNumber().
I forgot to mention that this error occurs for legacy interface.
[Updated on: Thu, 13 March 2014 18:45] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Sep 20 07:57:54 CEST 2024
Total time taken to generate the page: 0.03748 seconds
|