This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb single stepping takes ages
- From: Tim Sander <tim at krieglstein dot org>
- To: gdb at sourceware dot org
- Date: Wed, 18 Jun 2014 10:14:43 +0200
- Subject: Re: gdb single stepping takes ages
- Authentication-results: sourceware.org; auth=none
- References: <11141246 dot 9lllTVUqLL at dabox>
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
Just after sending the mail recognized that the thread: "Remote Debugging with
NEXT Command" touches a similar (the same?) issue. A solution mentioned was
range checking. But in the openocd case it seems already enabled:
show range-stepping
Debugger's willingness to use range stepping is on.
Best regards
Tim