From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26106 invoked by alias); 9 May 2019 22:22:23 -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 26098 invoked by uid 89); 9 May 2019 22:22:23 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Spam-Relays-External:sk:host109, H*r:sk:host109, H*RU:sk:host109, sk:value_s X-HELO: mail-wm1-f53.google.com Received: from mail-wm1-f53.google.com (HELO mail-wm1-f53.google.com) (209.85.128.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 09 May 2019 22:22:22 +0000 Received: by mail-wm1-f53.google.com with SMTP id h11so4984823wmb.5 for ; Thu, 09 May 2019 15:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JocSnVDQLGiX3jvseVnDW0l1F61y9oZipIs0oig6rnM=; b=De50RMwYiMYS9Z3ycHcowkpnhWNVAL+l4sxBo6tvRQ+o6F/Ko+WmDgxb3cHQmp0+VN xCErV2lyfz97SUbgtvKlI1lWKBmxIzFO+28+DIdQBNwVdA7qiNaJzaqYOIZFtXxvIqVT kmljfWgGwtKIXMtKEn1Goec3BGfzuKipIHL7sSBP5gIUCY6JV7uPd/uwEHerDqHRKtEC v9e3w3hYz15aQlqYL07JF7cJbyOvBPuW4wA6QEMSuyic1YjztY+6/90eiQ1U0HPBMvbS avkwsdFC3Vdwt6K+Kj4dM7LmkGrkYRLx6Hmy1vOndXmmjB3VtNpn8XwteSTT99al27Us lSNA== Return-Path: Received: from localhost (host109-154-100-57.range109-154.btcentralplus.com. [109.154.100.57]) by smtp.gmail.com with ESMTPSA id 130sm5315436wmd.15.2019.05.09.15.22.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 May 2019 15:22:19 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCHv2 0/5] Improve handling of negative dynamic properties Date: Thu, 09 May 2019 22:22:00 -0000 Message-Id: In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00235.txt.bz2 Patches #1 and #2 are unchanged from the previous version. Path #3 to #5 are new in this version.which aims to address Tom's feedback on the first version. The approach in this new series is to have dynamic properties understand what type they should be, this means that when the dynamic properties are resolved they will get back a correctly signed / unsigned value without the higher level code having to know which type to ask for. --- Andrew Burgess (5): gdb: Update type of lower bound in value_subscripted_rvalue gdb: Convert dwarf2_evaluate_property to return bool gdb/dwarf: Ensure the target type of ranges is not void gdb: Carry default property type around with dynamic properties gdb: Better support for dynamic properties with negative values gdb/ChangeLog | 47 ++++++++ gdb/dwarf2loc.c | 46 ++++++-- gdb/dwarf2loc.h | 36 +++--- gdb/dwarf2read.c | 194 ++++++++++++++++++++++--------- gdb/gdbtypes.c | 10 +- gdb/testsuite/ChangeLog | 11 ++ gdb/testsuite/gdb.fortran/vla-ptype.exp | 12 ++ gdb/testsuite/gdb.fortran/vla-sizeof.exp | 10 ++ gdb/testsuite/gdb.fortran/vla-value.exp | 27 +++++ gdb/testsuite/gdb.fortran/vla.f90 | 15 +++ gdb/valarith.c | 2 +- gdb/value.h | 3 +- 12 files changed, 328 insertions(+), 85 deletions(-) -- 2.14.5