From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23945 invoked by alias); 19 Jul 2002 14:23:28 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23922 invoked from network); 19 Jul 2002 14:23:26 -0000 Received: from unknown (HELO ftpbox.mot.com) (129.188.136.101) by sources.redhat.com with SMTP; 19 Jul 2002 14:23:26 -0000 Received: [from pobox4.mot.com (pobox4.mot.com [10.64.251.243]) by ftpbox.mot.com (ftpbox 2.1) with ESMTP id HAA13843; Fri, 19 Jul 2002 07:23:24 -0700 (MST)] Received: [from mail.wm.sps.mot.com ([199.10.246.2]) by pobox4.mot.com (MOT-pobox4 2.0) with ESMTP id HAA16433; Fri, 19 Jul 2002 07:23:23 -0700 (MST)] Received: from hyper.wm.sps.mot.com (hyper.wm.sps.mot.com [199.10.246.43]) by mail.wm.sps.mot.com (8.9.3/8.9.3) with ESMTP id KAA07815; Fri, 19 Jul 2002 10:23:19 -0400 Received: by hyper.wm.sps.mot.com (8.11.2) id g6JENKD24574; Fri, 19 Jul 2002 10:23:20 -0400 Date: Fri, 19 Jul 2002 07:23:00 -0000 Message-Id: <200207191423.g6JENKD24574@hyper.wm.sps.mot.com> From: Peter Barada To: aminayev@yahoo.com CC: drow@mvista.com, gdb@sources.redhat.com In-reply-to: <20020719060019.54178.qmail@web13509.mail.yahoo.com> (message from Alexei Minayev on Thu, 18 Jul 2002 23:00:19 -0700 (PDT)) Subject: Re: gdb-h8-stub References: <20020719060019.54178.qmail@web13509.mail.yahoo.com> X-SW-Source: 2002-07/txt/msg00198.txt.bz2 >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)