This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb-h8-stub
- From: Peter Barada <pbarada at mail dot wm dot sps dot mot dot com>
- To: aminayev at yahoo dot com
- Cc: drow at mvista dot com, gdb at sources dot redhat dot com
- Date: Fri, 19 Jul 2002 10:23:20 -0400
- Subject: Re: gdb-h8-stub
- References: <20020719060019.54178.qmail@web13509.mail.yahoo.com>
>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)