From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103188 invoked by alias); 7 Apr 2017 17:39:05 -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 102645 invoked by uid 89); 7 Apr 2017 17:39:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=Respect, Hx-languages-length:1385 X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Apr 2017 17:39:03 +0000 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v37Hce9K061041 for ; Fri, 7 Apr 2017 13:39:03 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 29nsrbpd60-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 07 Apr 2017 13:39:02 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 7 Apr 2017 18:39:00 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 7 Apr 2017 18:38:57 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v37Hcv4v40501366 for ; Fri, 7 Apr 2017 17:38:57 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6FA0611C04A for ; Fri, 7 Apr 2017 18:38:18 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 555E811C052 for ; Fri, 7 Apr 2017 18:38:18 +0100 (BST) Received: from oc1027705133.ibm.com (unknown [9.152.212.162]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP for ; Fri, 7 Apr 2017 18:38:18 +0100 (BST) From: Andreas Arnez To: gdb-patches@sourceware.org Subject: [PATCH 0/9] Various DWARF piece fixes Date: Fri, 07 Apr 2017 17:39:00 -0000 X-TM-AS-GCONF: 00 x-cbid: 17040717-0008-0000-0000-0000041FA0D8 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17040717-0009-0000-0000-00001D2B86BB Message-Id: <1491586736-21296-1-git-send-email-arnez@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-04-07_15:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1704070144 X-IsSubscribed: yes X-SW-Source: 2017-04/txt/msg00177.txt.bz2 This patch series follows up on the proposed fix for PR21226: https://sourceware.org/ml/gdb-patches/2017-03/msg00110.html The fix for that issue is now provided by patch #3. More fixes for various other DWARF piece handling issues are provided by patches #2, #5, #6, and #8. Patch #1 establishes a new test case that is extended by some of the other patches. Patches #4, #7, and #9 perform some clean-up. Andreas Arnez (9): Add test for modifiable DWARF locations Fix size capping in write_pieced_value PR gdb/21226: Take DWARF stack value pieces from LSB end Remove addr_size field from struct piece_closure Fix issues in write_pieced_value when targeting bit-fields Fix handling of DWARF register pieces on big-endian targets Improve logic for buffer allocation in read/write_pieced_value Respect piece offset for DW_OP_bit_piece Remove unnecessary copies of variables in read/write_pieced_value gdb/dwarf2loc.c | 294 +++++++++++++-------------- gdb/testsuite/gdb.dwarf2/nonvar-access.exp | 21 +- gdb/testsuite/gdb.dwarf2/var-access.c | 25 +++ gdb/testsuite/gdb.dwarf2/var-access.exp | 315 +++++++++++++++++++++++++++++ gdb/testsuite/lib/gdb-utils.exp | 2 +- 5 files changed, 503 insertions(+), 154 deletions(-) create mode 100644 gdb/testsuite/gdb.dwarf2/var-access.c create mode 100644 gdb/testsuite/gdb.dwarf2/var-access.exp -- 2.3.0