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: gdb-h8-stub


>X200000,0...Ack
>X0,4e...Ack           (I'd expect X200000,4e here)
>Packet received: OK
>X4e,4e...Ack          (expected: X20004e,4e)
>Packet received: OK
>and so on.
>
>Address is *relative* to what comes in the first packet. E.g. the second
>packet gdb sends is "X0", which means "0 bytes +0x200000 base", and the base
>value was in the first packet.

That is not the intended effect.  The 'X' and 'M' take *absolute*
addresses(see section .  Perhaps you need to debug gdb to see why its trying to
tell the stub to use "X0," (yes, using gdb to debug gdb can get pretty weird).
You'll probably want to put a breakpoint in remote_write_bytes for
this...

See:
http://sources.redhat.com/gdb/current/onlinedocs/gdb_32.html#IDX1167

for a complete description of the remote protocol.

-- 
Peter Barada                                   Peter.Barada@motorola.com
Wizard                                         781-852-2768 (direct)
WaveMark Solutions(wholly owned by Motorola)   781-270-0193 (fax)


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