From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8934 invoked by alias); 20 May 2010 19:45:06 -0000 Received: (qmail 8920 invoked by uid 22791); 20 May 2010 19:45:05 -0000 X-SWARE-Spam-Status: No, hits=-5.7 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; Thu, 20 May 2010 19:44:59 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4KJioGX008604 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 May 2010 15:44:51 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4KJiofC026759; Thu, 20 May 2010 15:44:50 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o4KJinU0007457; Thu, 20 May 2010 15:44:49 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id C217337818E; Thu, 20 May 2010 13:44:48 -0600 (MDT) From: Tom Tromey To: Stan Shebs Cc: gdb-patches@sourceware.org, Jan Kratochvil Subject: Re: RFC: implement DW_OP_bit_piece References: <4BF327D2.3000802@codesourcery.com> Reply-To: Tom Tromey Date: Thu, 20 May 2010 19:53:00 -0000 In-Reply-To: (Tom Tromey's message of "Wed, 19 May 2010 17:34:11 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00442.txt.bz2 Tom> I will update locexpr_describe_location_1. I looked at this a bit. The existing code only supports a subset of DWARF expressions. I hacked at it a little and I can get this: (gdb) info addr a Symbol "a" is multi-location (range 0x8048440-0x8048448, a variable with complex or multiple locations (DWARF2); range 0x8048448-0x804844b, a variable with complex or multiple locations (DWARF2); range 0x804844b-0x804845b, a variable in $edx [12-bit piece at offset 0], and a variable at frame base reg $ebp offset 8+0Corrupted DWARF2 expression for "a". ... but I think this is pretty ugly (not to mention the "Corrupted" bit at the end there... I haven't investigated it). I think it would be more useful to just disassemble complicated DWARF expressions. We could just push in Jan's patch to do this. Comments? Tom