remote serial protocol - gdbserver

Andrew Cagney ac131313@redhat.com
Fri Oct 10 02:28:00 GMT 2003


> Hi,
> I have a querry related to remote serial protocl.
> 
> I have been ported gdbserver on RTOS (micro itron) running on SH3
> processor.
> while debugging the remote application with "next" user command from gdb,
> 
> Gdb send the following packets to gdbserver
> 
>          m0,2#fb
>          M0,2:20c3#0d
>   
>          simmilary for Z packet with zero address.
> 
> Here if the address is zero, what does it mean ? for example in this
> packet "M0,2:20c3#0d" where the TRAP instruction should be write ?
> where the data should be read from or write into ?
> 
> The solution for this querry will be greatly appreciated.

Can you post a gdb session with "set debug remote 1" enabled?

A wild guess is that it's trying to set a breakpoint at the return 
address of the function it's trying to NEXT over, only its getting that 
return address wrong.

Andrew




More information about the Gdb mailing list