This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB stub question?
On Mon, Apr 24, 2006 at 01:59:02PM +0530, Inder wrote:
> Hi Ramana
>
> The stub is capable of single steping but can only step one
> instruction at a time, when debugging C code, the next or step should
> acutally step to the next source line, but in my case for every next
> or step i am only able to step one instruction.
>
> The stub has no information about the source lines so the host is
> capable of doing this, by reading the debug info.
What's going wrong then? GDB implements source level single stepping
by doing instruction level single stepping until the source line
changes.
--
Daniel Jacobowitz
CodeSourcery