Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
busiek is currently offline  busiek
Messages: 43
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 Go to previous message
busiek is currently offline  busiek
Messages: 43
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

Previous Topic: can't include .rc icons
Next Topic: How do I compile umk.exe without theide (freebsd)?
Goto Forum:
  


Current Time: Wed Nov 13 10:35:16 CET 2019

Total time taken to generate the page: 0.01565 seconds