From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11560 invoked by alias); 22 May 2003 18:42:16 -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 11511 invoked from network); 22 May 2003 18:42:15 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.131) by sources.redhat.com with SMTP; 22 May 2003 18:42:15 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 8E2EF2B2F; Thu, 22 May 2003 14:42:07 -0400 (EDT) Message-ID: <3ECD19FF.7060106@redhat.com> Date: Thu, 22 May 2003 18:42:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kevin Buettner Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Limited DW_OP_piece support References: <1030522170039.ZM30271@localhost.localdomain> <3ECD0E9A.9020908@redhat.com> <1030522183033.ZM30789@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg00434.txt.bz2 > On May 22, 1:53pm, Andrew Cagney wrote: > > >> > The patch below adds limited DW_OP_piece support to dwarf2expr.c. I >> > will post a patch to rs6000-tdep.c which illustrates what a >> > ``dwarf2_compose_register_pieces'' method should look like. > >> >> I think GDB needs to just learn about location lists :-/ > > > It certainly should, but I fail to see how that relates to the > addition of DW_OP_piece support to GDB's DWARF 2 location expression > evaluator. I think that what you meant to say is that GDB should > fully (and generically) support arbitrary location expressions. > (Remember that the term "location list" is used to describe objects > whose location changes during its lifetime.) Yes, too many context sensative terms. A list of sub-locations. Given a ``struct value'', the [list of] sub-locations (pieces?) that describe how to find that values raw bytes. Andrew > BTW, I notice that I forgot the ChangeLog entries for my patch. Here > they are: > > * dwarf2expr.c (execute_stack_op): Add limited DW_OP_piece support. > * gdbarch.sh (dwarf2_compose_register_pieces): New method. > * gdbarch.c, gdbarch.h: Regenerate. > > Kevin >