From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27978 invoked by alias); 14 May 2010 22:35:35 -0000 Received: (qmail 27968 invoked by uid 22791); 14 May 2010 22:35:34 -0000 X-SWARE-Spam-Status: No, hits=-5.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD 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; Fri, 14 May 2010 22:35:30 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4EMZSGI020735 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 14 May 2010 18:35:28 -0400 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4EMZMOR003289 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 14 May 2010 18:35:24 -0400 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o4EMZLoD004149; Sat, 15 May 2010 00:35:21 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o4EMZLK6004148; Sat, 15 May 2010 00:35:21 +0200 Date: Fri, 14 May 2010 22:51:00 -0000 From: Jan Kratochvil To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: RFC: partially fix empty DW_OP_piece Message-ID: <20100514223521.GA3975@host0.dyn.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-08-17) 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: 2010-05/txt/msg00316.txt.bz2 On Fri, 14 May 2010 04:03:37 +0200, Tom Tromey wrote: > The other way is to simply remove val_print entirely and make all of > printing work using values. I think this is the route I would prefer. That could hopefully solve the problem of missing type-associated object address for DW_OP_push_object_address for the VLA (variable length arrays) patch. > @@ -366,6 +366,14 @@ read_pieced_value (struct value *v) > + case DWARF_VALUE_OPTIMIZED_OUT: > + /* We just leave the bits empty for now. This is not ideal > + but gdb currently does not have a nice way to represent > + optimized-out pieces. */ > + warning (_("some bits in computed object were optimized out; " > + "replacing with zeroes")); > + break; If it would go in I would prefer to at least print the bit/byte range. Thanks, Jan