set breakpoints in remote debugging

fzchuan fzchuan@eos.cs.nthu.edu.tw
Wed Nov 2 17:34:00 GMT 2005


Hi all:

I encountered some problems in GDB remote debugging.
In most of time, GDB host would send correct breakpoint address to target which 
I asked it. But sometimes it would send strange address.
That is,in GDB host side,I set breakpoint on some address,i.e.:
(gdb)b *0x8

Then, in target side, target will receive the request. 
I print the message received from GDB host,
and it shows that GDB ask target to stop at 0xc6

I use GDB disassemble to query 0x8, and is shows that it is a Call (JUMP)
instruction and jump target address is 0xc6.

Why? thanks

Pin-Chuan




More information about the Gdb mailing list