From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4385 invoked by alias); 4 Dec 2013 15:25:20 -0000 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 Received: (qmail 4375 invoked by uid 89); 4 Dec 2013 15:25:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_50,RDNS_NONE autolearn=no version=3.3.2 X-HELO: mail-gw2-out.broadcom.com Received: from Unknown (HELO mail-gw2-out.broadcom.com) (216.31.210.63) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 04 Dec 2013 15:24:56 +0000 Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw2-out.broadcom.com with ESMTP; 04 Dec 2013 07:28:59 -0800 Received: from IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.1.438.0; Wed, 4 Dec 2013 07:24:49 -0800 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) with Microsoft SMTP Server id 14.1.438.0; Wed, 4 Dec 2013 07:24:49 -0800 Received: from [10.177.73.48] (unknown [10.177.73.48]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id A7C2F246A3 for ; Wed, 4 Dec 2013 07:24:48 -0800 (PST) Message-ID: <529F493C.8090201@broadcom.com> Date: Wed, 04 Dec 2013 15:25:00 -0000 From: Andrew Burgess User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: Subject: [PATCH [1/2] Add support for DW_OP_bit_piece and DW_OP_plus_uconst to DWARF assembler. References: <529F489F.7070805@broadcom.com> In-Reply-To: <529F489F.7070805@broadcom.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00143.txt.bz2 Add some additional DW_OP_ support to the DWARF assembler. OK to apply? Thanks, Andrew gdb/testsuite/ChangeLog * lib/gdb.exp (_location): Handle DW_OP_bit_piece and DW_OP_plus_uconst. diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp index c28b986..e916477 100644 --- a/gdb/testsuite/lib/dwarf.exp +++ b/gdb/testsuite/lib/dwarf.exp @@ -716,10 +716,19 @@ namespace eval Dwarf { _op .sleb128 [lindex $line 1] } + DW_OP_plus_uconst { + _op .uleb128 [lindex $line 1] + } + DW_OP_piece { _op .uleb128 [lindex $line 1] } + DW_OP_bit_piece { + _op .uleb128 [lindex $line 1] + _op .uleb128 [lindex $line 2] + } + DW_OP_GNU_implicit_pointer { if {[llength $line] != 3} { error "usage: DW_OP_GNU_implicit_pointer LABEL OFFSET"