From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21994 invoked by alias); 12 Feb 2009 15:34:00 -0000 Received: (qmail 21985 invoked by uid 22791); 12 Feb 2009 15:34:00 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp.idnet.com (HELO smtp-out.idnet.com) (212.69.36.238) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Feb 2009 15:33:51 +0000 Received: from localhost (unknown [127.0.0.1]) by smtp-out.idnet.com (Postfix) with ESMTP id F3C8134EFDE for ; Thu, 12 Feb 2009 15:33:48 +0000 (UTC) Received: from smtp-out.idnet.com ([127.0.0.1]) by localhost (smtp-out.idnet.com [127.0.0.1]) (amavisd-new, port 10040) with LMTP id PIeU8LML1tid for ; Thu, 12 Feb 2009 15:33:48 +0000 (GMT) Received: from mail.idnet.net.uk (mail.idnet.net.uk [212.69.36.63]) by smtp-out.idnet.com (Postfix) with ESMTP id 8288B34EFE1 for ; Thu, 12 Feb 2009 15:33:48 +0000 (GMT) Received: from [91.135.5.64] by mail.idnet.net.uk (GMS 15.01.3664/NU3963.00.7ca42f0c) with ESMTP id rwzixpba for gdb@sourceware.org; Thu, 12 Feb 2009 15:33:46 +0000 Subject: Re: GDB Remote protocol error codes From: Jeremy Bennett Reply-To: jeremy.bennett@embecosm.com To: David Howells Cc: gdb@sourceware.org, Roel Kluin In-Reply-To: <31615.1234451921@redhat.com> References: <31615.1234451921@redhat.com> Content-Type: text/plain Date: Thu, 12 Feb 2009 15:34:00 -0000 Message-Id: <1234452793.2950.87.camel@thomas> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-AuthenticatedSender: jeremy.bennett.embecosm.com@idnet.net.uk X-IsSubscribed: yes 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 X-SW-Source: 2009-02/txt/msg00101.txt.bz2 On Thu, 2009-02-12 at 15:18 +0000, David Howells wrote: > Hi, > > Is there a general scheme for error reply codes ('Exx') in the GDB remote > protocol? The documentation is unclear on this point. _Some_ of the commands > mandate an errno return, but not all, and from whose set of errnos? And does > this apply to all commands? > > Can the gdb.info file be updated to make this more clear please? > > I need to know this so that I can fix up the error returns made by the FRV > arch gdbstub in the Linux kernel. > Hi David, When I looked at the various RSP dialogs a few months ago, I found the error code values were pretty much always ignored at the client end. I'll be submitting some updates to the GDB manuals in the near future, but in the meantime there is information in my application note on using RSP: http://www.embecosm.com/download/ean4.html. HTH, Jeremy -- Tel: +44 (1202) 416955 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@embecosm.com Web: www.embecosm.com