From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15974 invoked by alias); 22 Jan 2004 23:16:50 -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 15967 invoked from network); 22 Jan 2004 23:16:49 -0000 Received: from unknown (HELO ural2.hszk.bme.hu) (152.66.130.2) by sources.redhat.com with SMTP; 22 Jan 2004 23:16:49 -0000 Received: (from nm127@localhost) by ural2.hszk.bme.hu (8.12.8p1/8.12.8) id i0MNGm3b018619; Fri, 23 Jan 2004 00:16:48 +0100 (MET) Date: Thu, 22 Jan 2004 23:16:00 -0000 From: =?iso-8859-2?Q?N=E9meth_M=E1rton?= X-X-Sender: nm127@ural2 To: gdb@sources.redhat.com Subject: minimal stub? (GDB Remote Serial Protocol) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-SW-Source: 2004-01/txt/msg00261.txt.bz2 Hi! I would like to implement a minimal stub which can communicatig with arm-elf-gdb 6.0. The documentation ( http://sources.redhat.com/gdb/current/onlinedocs/gdb_33.html ) says, that: | For any command not supported by the stub, an empty response (`$#00') | should be returned. That way it is possible to extend the protocol. A | newer GDB can tell if a packet is supported based on that response. | | A stub is required to support the `g', `G', `m', `M', `c', and `s' | commands. All other commands are optional. So I tried first to accept all packets coming from gdb with '+', and send a response '$#00' until any of the `g', `G', `m', `M', `c', or `s' is coming. (-> means arm-elf-gdb -> WE_ARE_HERE; <- means opposite direction) $ arm-elf-gdb GNU gdb 6.0 Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=3Di686-pc-linux-gnu --target=3Darm-elf". (gdb) set remotebaud 57600 (gdb) target remote /dev/ttyS1 Remote debugging using /dev/ttyS1 [and now the communication on /dev/ttyS1] -> + -> $Hc-1#09 <- + <- $#00 -> + -> $qC#b4 <- + <- $#00 -> + -> $qOffsets#4b <- + <- $#00 -> + -> $?#3f <- + <- $#00 -> + And now at the arm-elf-gdb's prompt I get: "warning: Invalid remote reply:" Bad luck, none of the minimal stub commands found. Have I misunderstand the documentation or it is out of date? Where can I have up to date informations? (e.g. which file in the gdb source tree) Thanks. M=E1rton N=E9meth Student of University of Technology and Economics, Hungary