List Info

Thread: GDB stub question?




GDB stub question?
user name
2006-04-24 06:05:29
--
Thanks,
Inder
GDB stub question?
user name
2006-04-24 06:13:13
Hi All

I have ported a GDB stub for ARM based system, but when i
tried doing
source stepping GDB (GDB 6.4)  host sends the following
packet to the
target system:

  ---> $S12#b6

which tell the target to actually do a single instruction
step. I
believe in the previous versions of GDB source stepping was
done by
setting the breakpoint to the next source line and then
continue.

Am i missing something here.

Any help will be appriciated.

--
Thanks,
Inder
GDB stub question?
user name
2006-04-24 07:01:52
This means your stub is capable of doing single stepping by
itself. S12
would mean give signal 12 to the debuggee.

>From the manual -> 

`S'SIG`;'ADDR -- step with signal
     Like `C' but step not continue.

If you need more help show a complete log of the remote
protocol for the
steps you did and the behaviour you expected / observed. 


- Ramana

On Mon, 2006-04-24 at 11:43 +0530, Inder wrote:
> Hi All
> 
> I have ported a GDB stub for ARM based system, but when
i tried doing
> source stepping GDB (GDB 6.4)  host sends the following
packet to the
> target system:
> 
>   ---> $S12#b6
> 
> which tell the target to actually do a single
instruction step. I
> believe in the previous versions of GDB source stepping
was done by
> setting the breakpoint to the next source line and then
continue.
> 
> Am i missing something here.
> 
> Any help will be appriciated.
> 
> --
> Thanks,
> Inder

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )