From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 362 invoked by alias); 3 Jan 2015 19:25:25 -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 353 invoked by uid 89); 3 Jan 2015 19:25:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f43.google.com Received: from mail-wg0-f43.google.com (HELO mail-wg0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 03 Jan 2015 19:25:23 +0000 Received: by mail-wg0-f43.google.com with SMTP id k14so7717871wgh.30 for ; Sat, 03 Jan 2015 11:25:20 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.194.7.103 with SMTP id i7mr43449818wja.53.1420313120413; Sat, 03 Jan 2015 11:25:20 -0800 (PST) Received: by 10.27.39.198 with HTTP; Sat, 3 Jan 2015 11:25:20 -0800 (PST) In-Reply-To: References: Date: Sat, 03 Jan 2015 19:25:00 -0000 Message-ID: Subject: Re: [PATCH] dwarf.exp: All numeric attributes require a form From: Doug Evans To: "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg00023.txt.bz2 On Sat, Jan 3, 2015 at 11:21 AM, Doug Evans wrote: > Hi. > > As a followup to this patch: > https://sourceware.org/ml/gdb-patches/2015-01/msg00020.html > > this patch flags as an error any numeric attribute that doesn't > specify a form. And lo and behold I found more bugs. :-) > > Regression tested on amd64-linux. > > 2015-01-03 Doug Evans > > * lib/dwarf.exp (Dwarf): Flag an error if a numeric attribute value > is given without an explicit form. > * gdb.dwarf2/arr-subrange.exp: Specify forms for all numeric > attributes. > * gdb.dwarf/corrupt.exp: Ditto. > * gdb.dwarf2/enum-type.exp: Ditto. > * gdb.trace/entry-values.exp: Ditto. > * gdb.trace/unavailable-dwarf-piece.exp: Ditto. btw, I did think of using a more complete test than just "string is integer". I'm happy with whatever y'all decide. I decided against trying to guess the form for numeric attributes, there's just too many to choose from.