From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7100 invoked by alias); 26 Feb 2004 17:08:12 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 7092 invoked from network); 26 Feb 2004 17:08:11 -0000 Received: from unknown (HELO biscayne-one-station.mit.edu) (18.7.7.80) by sources.redhat.com with SMTP; 26 Feb 2004 17:08:11 -0000 Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by biscayne-one-station.mit.edu (8.12.4/8.9.2) with ESMTP id i1QH8A63011018; Thu, 26 Feb 2004 12:08:10 -0500 (EST) Received: from contents-vnder-pressvre.mit.edu (CONTENTS-VNDER-PRESSVRE.MIT.EDU [18.7.16.67]) (authenticated bits=56) (User authenticated as nathanw@ATHENA.MIT.EDU) by melbourne-city-street.mit.edu (8.12.4/8.12.4) with ESMTP id i1QH89TC010483; Thu, 26 Feb 2004 12:08:09 -0500 (EST) Received: (from nathanw@localhost) by contents-vnder-pressvre.mit.edu (8.12.9) id i1QH88uQ000132; Thu, 26 Feb 2004 12:08:08 -0500 (EST) To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [patch] Gdbserver error codes References: <20040226151034.GA24170@nevyn.them.org> From: "Nathan J. Williams" Organization: Wasabi Systems, Inc. Date: Thu, 26 Feb 2004 17:08:00 -0000 In-Reply-To: <20040226151034.GA24170@nevyn.them.org> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-02/txt/msg00763.txt.bz2 Daniel Jacobowitz writes: > Thanks to Eli for making me look closer at this. Parts of remote.c > will reject ENN; in particular, ENN will cause remote_write_bytes to return > an error but remote_read_bytes not to. Thus the 0xffffffff gdbserver has > been printing instead of an error message for inaccessible memory regions. I still don't see that gdbserver will actually return an error if the memory read fails; the target_ops read routine doesn't return an error to the upper level, and the low transfer routines don't check the ptrace return value and errno. I can put together my patches to address this if there's interest. (while I'm at it, is there anything specifying that the hex format for returned data is lowercase hex, or is the capital-E error return the only implicit statement of that?) - Nathan