Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb single stepping takes ages
@ 2014-06-18  7:24 Tim Sander
  2014-06-18  8:14 ` Tim Sander
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tim Sander @ 2014-06-18  7:24 UTC (permalink / raw)
  To: gdb

Hi

I am currently using openocd as a gdbserver backend for debugging  an embedded 
target with gdb 7.7. When i want to step over a single line with -exec-next:

for(int a=0; a<1000000;a++){ };

the time taken for the step is linear to the maximum count number and takes in 
my setup about 1 second for one increment of a. Setting a temp breakpoint in 
the next line and continuing works much faster.

So is there a way improve the stepping speed in such situations?

Best regards
Tim


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-18  9:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-18  7:24 gdb single stepping takes ages Tim Sander
2014-06-18  8:14 ` Tim Sander
2014-06-18  8:49   ` Agovic, Sanimir
2014-06-18  9:28   ` Yao Qi
2014-06-18  8:21 ` Mark Kettenis
2014-06-18  8:24 ` Luis Machado

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox