News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

gdb.exe eat 250M+ memory when debuging cb under cb

Started by ollydbg, September 26, 2009, 10:06:05 AM

Previous topic - Next topic

ollydbg

I just find that when I debug codeblocks svn under codeblocks + TDM-GCC 4.4.0 + gdb6.8.

gdb.exe eat 250M memory :shock:.

If I can remember, this value was about 120M several months ago.


Is this a normal thing :D

Thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

blueshake

I can confirm this issue.In the latest cb,when I debug cb codes,it always happened.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

MortenMacFly

Quote from: ollydbg on September 26, 2009, 10:06:05 AM
If I can remember, this value was about 120M several months ago.
Keep in mind that for example as CC has improved it will therefore keep a lot more information in memory. So if you debug a big projects with a lot of symbols the memory footprint can increase, indeed.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

ollydbg

@morten
I didn't agree with you. Because When I haven't open any project in the debugee(codeblocks), the gdb.exe has already reached 250M+.
I believe this is not caused by the new CC code.  :D Maybe, the linker is different.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.