User forums > Using Code::Blocks

Show local variables in the debugger

<< < (6/6)

ollydbg:

--- Quote from: oBFusCATed on September 01, 2013, 07:39:32 pm ---All local variable fanatics could checkout r9283 and start complaining that they are slow and cause gdb/c::b crashes.

Enjoy.

--- End quote ---
Hi, Obf, good work, I'm enjoying this new feature now. :)

ollydbg:
@OBF:

With the latest GDB (git head), I think debugging/stepping under C::B with local variables shown is accelerated, see the latest comments in the below bug reports:

https://sourceware.org/bugzilla/show_bug.cgi?id=16196
https://sourceware.org/bugzilla/show_bug.cgi?id=12127

The main fix is that GDB now only fetch the maximize size of memory(defined by the user) from the inferior(debugee), GDB was fetch a vary large size(random value if it is an un-initilized local variable) of the memory from the inferior. The size of the element can be set such as:

--- Code: ---set print elements 200

--- End code ---
So, if you have time, you can build GDB with the latest GIT head, and try to see whether it steps faster. (I heard before that GDB steps very slow if local variable is shown under C::B)




oBFusCATed:
Won't help much. The problem is in codeblocks, not in GDB (most of the times).

Navigation

[0] Message Index

[*] Previous page

Go to full version