From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16651 invoked by alias); 27 Sep 2011 12:53:15 -0000 Received: (qmail 16638 invoked by uid 22791); 27 Sep 2011 12:53:14 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Sep 2011 12:52:55 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p8RCqsTP012589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 27 Sep 2011 08:52:55 -0400 Received: from host1.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p8RCqqvR004944 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 27 Sep 2011 08:52:54 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p8RCqpqx003125 for ; Tue, 27 Sep 2011 14:52:51 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p8RCqool003121 for gdb-patches@sourceware.org; Tue, 27 Sep 2011 14:52:50 +0200 Date: Tue, 27 Sep 2011 13:41:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Subject: Re: [patch] Fix internal error on optimized-out values (regression by me) Message-ID: <20110927125250.GA27966@host1.jankratochvil.net> References: <20110926191132.GA30401@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110926191132.GA30401@host1.jankratochvil.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-09/txt/msg00457.txt.bz2 On Mon, 26 Sep 2011 21:11:32 +0200, Jan Kratochvil wrote: > Formerly (incl. gdb-7.3) did: > (gdb) p p->f > $1 = 0 > which was also wrong, ((struct *) )->field should be IMO still > ; just it became internal-error now. Mail text fix up: ((struct) ).field should be IMO still ; just it became internal-error now. For ((struct *) )->field GDB still correctly throws by require_not_optimized_out error (_("value has been optimized out")); It would be probably incorrect to dereference pointer into anything. Regards, Jan