This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: remote serial protocol - gdbserver


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]