From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 579 invoked by alias); 23 Dec 2001 09:44:52 -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 546 invoked from network); 23 Dec 2001 09:44:50 -0000 Received: from unknown (HELO localhost.cygnus.com) (144.134.109.103) by sources.redhat.com with SMTP; 23 Dec 2001 09:44:50 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 0C24F3EA2; Sun, 23 Dec 2001 08:38:27 +0000 (GMT) Message-ID: <3C259803.6090007@cygnus.com> Date: Sun, 23 Dec 2001 01:44:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.6) Gecko/20011207 X-Accept-Language: en-us MIME-Version: 1.0 To: Jim Blandy Cc: gdb-patches@sources.redhat.com Subject: Re: PATCH: S/390: don't try to read zero bytes References: <20011220085726.B6FA35E9D8@zwingli.cygnus.com> <3C21C707.2050609@cygnus.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00570.txt.bz2 > Andrew Cagney writes: > >> > 2001-12-20 Jim Blandy >> > >> > * s390-tdep.c (s390_readinstruction): Don't call >> > info->read_memory_func to read zero bytes. Some targets' >> > xfer_memory functions can't cope with that. >> > > >> >> >> Jim, which? >> >> While slightly stupid, the target should be able to handle that. > > > Oh, wait, I understand now. > > A target's to_xfer_memory function is supposed to return the number of > bytes transferred, or zero if it can't transfer the bytes. If you > make a zero-length request, there's no way for it to indicate success. > D'oh! Can you file a CR against this stupidity? I'll add it to my list of things to untangle. Andrew