From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90383 invoked by alias); 30 Nov 2015 20:58:49 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 90373 invoked by uid 89); 30 Nov 2015 20:58:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wm0-f41.google.com Received: from mail-wm0-f41.google.com (HELO mail-wm0-f41.google.com) (74.125.82.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 30 Nov 2015 20:58:46 +0000 Received: by wmww144 with SMTP id w144so154872727wmw.0 for ; Mon, 30 Nov 2015 12:58:44 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.194.202.163 with SMTP id kj3mr72027142wjc.93.1448917123841; Mon, 30 Nov 2015 12:58:43 -0800 (PST) Received: by 10.28.171.11 with HTTP; Mon, 30 Nov 2015 12:58:43 -0800 (PST) In-Reply-To: <4EF38853-B93D-4E56-AA2D-E2AA3D0089E5@adacore.com> References: <20151124133817.GA10033@clifford.at> <20151124143811.GA10563@clifford.at> <4EF38853-B93D-4E56-AA2D-E2AA3D0089E5@adacore.com> Date: Mon, 30 Nov 2015 20:58:00 -0000 Message-ID: Subject: Re: Commands for a minimal GDB stub? From: Juha Aaltonen To: gdb-mailing list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00048.txt.bz2 In case it's of any help, I've been writing a bit more than minimal bare metal standalone stub/server/agent/whatchacallit for Raspberry Pi 2B (Cortex-A7). It might be helpful if you are wondering about details of the remote serial protocol. https://github.com/turboscrew/rpi_stub On Tue, Nov 24, 2015 at 6:41 PM, Tristan Gingold wrot= e: > >> On 24 Nov 2015, at 15:38, Clifford Wolf wrote: >> >> On Tue, Nov 24, 2015 at 02:51:49PM +0100, Tristan Gingold wrote: >>> I think the documentation is slightly incorrect. For an almost minimal >>> gdb stub, I have also implemented: >>> ?, z, Z, qSupported, qC, qSymbol::, P, k, H >>> z, Z, H, k, qSupported returned $#00. >>> >>> You shouldn=E2=80=99t be very far from having a communication. >> >> thanks. I've now added 'S05' as response to '?' and now I get to the poi= nt >> where gdb actually queries the register file using the 'g' command. So I >> think I'm now where the actual work starts.. ;) >> >> again, thanks a lot for your help! > > You=E2=80=99re welcome. Note there are a few examples of stubs within gd= b/stubs. > > Tristan. >