From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18617 invoked by alias); 27 Jan 2004 16:43: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 18593 invoked from network); 27 Jan 2004 16:43:11 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 27 Jan 2004 16:43:11 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 55A6F2B8F; Tue, 27 Jan 2004 08:54:19 -0500 (EST) Message-ID: <40166D8B.8030209@gnu.org> Date: Tue, 27 Jan 2004 16:43:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: Jim Blandy Cc: gdb-patches@sources.redhat.com Subject: Re: RFA: handle zero-length types in value_from_register References: <40166B2D.9080506@gnu.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-01/txt/msg00697.txt.bz2 > Andrew Cagney writes: > > >> > 2004-01-27 Jim Blandy >> > * findvar.c (value_from_register): If the type has no length, >> > just >> > return an acceptable value --- don't report an internal error. >> > > >> This looks to need a test case. > > > I tried to put one together, but the bug only occurs when the > zero-length value is allocated to a register. I couldn't find any way > to make that happen at all. So the only known instance of this bug > depends on bad debug info. The commentary should really reflect this important detail (also mention the compiler that's broken for instance). Should GDB also complain about the bogus info? Andrew