User forums > Using Code::Blocks

C::B debug (gdb) with breakpoints pending is VERY SLOW ...

(1/4) > >>

kccheng:
Hi,

I want to debug a DLL which will be loaded by my host application (myApp).
If I set breakpoints first (pending breakpoints), then click
on Debug->Start ... myApp (multi-threads, gtk2 app) will take about 1min. to start.
But without breakpoints, it only takes couple sec to start.

I try to use text mode gdb directly, with breakpoints pending on, it will slow
down a little bit but only couple sec delay which is similar to C::B without breakpoints.

So my simple guess ... it's C::B debug plugin's problem.
I also tested debugger branch nightly build ... the same, it's very slow.
If I set more breakpoints, it will get slower !!!

Anyone know what's wrong.

Thanks a lot
KC


oBFusCATed:
Hm, sound like a gdb bug.
Can you post the full debugger's debug log (you need to enable it in the debugger's settings)?
Can you try to execute the same commands in a cmd gdb session?

kccheng:

--- Quote from: oBFusCATed on June 17, 2011, 09:42:06 pm ---Hm, sound like a gdb bug.
Can you post the full debugger's debug log (you need to enable it in the debugger's settings)?
Can you try to execute the same commands in a cmd gdb session?

--- End quote ---

Attachment is the debug log I recorded.
I guess it's C::B's problem because using gdb 6.8 (mingw version) directly to
run the host application does not slow down much (only ~5 sec which is acceptable).

But in C::B ... the host application will take sometime 1 min. to start.

I'm trying to ask my customer to accept C::B as development platform ... this
performance issue is quite critical for me.
Any suggestion will be appreciated.


Regards,
KC

ouch:
I don't get any unusual delays when setting breakpoints in the plain codeblocks trunk.

I imagine the new debugger is a plugin like everything else, you can probably just have your customer disable it till it gets improved a bit and use the old one for now.

oBFusCATed:

--- Quote from: kccheng on June 17, 2011, 10:25:43 pm ---Attachment is the debug log I recorded.
I guess it's C::B's problem because using gdb 6.8 (mingw version) directly to
run the host application does not slow down much (only ~5 sec which is acceptable).

--- End quote ---
You're saying that if you execute the same commands in a console gdb session, you'll have no delay?
Have you tried newer gdb?

p.s. we're talking about windows, aren't we?

Navigation

[0] Message Index

[#] Next page

Go to full version