From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20347 invoked by alias); 5 Jul 2016 17:32:54 -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 20337 invoked by uid 89); 5 Jul 2016 17:32:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=BAYES_00,MISSING_HEADERS,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_WEB,SPF_PASS autolearn=no version=3.3.2 spammy=H*UA:0.2, Hx-languages-length:996, misconfigured X-HELO: mail-pf0-f175.google.com Received: from mail-pf0-f175.google.com (HELO mail-pf0-f175.google.com) (209.85.192.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 05 Jul 2016 17:32:41 +0000 Received: by mail-pf0-f175.google.com with SMTP id c2so72092981pfa.2 for ; Tue, 05 Jul 2016 10:32:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:subject:cc:user-agent:message-id :references:content-transfer-encoding:mime-version; bh=FZOBUXEddC1Qf/OzLY/SJsWktXlTqSd1qwJ3rZ0nJnQ=; b=R7CvawMesawO6LsLKF5JtAeA73IAKiAgxPDmEZnSXbuCSeCACvNOOvmVB6b652xqsw HVuhfzkfKL9+V1LhIeca40Zx3w2IIyMyWBuhdlnpOrumoOgxtfG2aX2hBUuuiDUBXQV6 UxR40tdffBE8D7ZVnSsJZphH/c8DH+0p34nYiqdVigIHYNhY/fUZSmK0Yg+XnzYJ1kxA rAv+5+k6VaxgDGVlv6nFTbQ14FV0lvtGinkFo8zgMSVq1ok0aaLnri4djqdWQmEfxBo2 za5X0KO+GtupxAbqvEqC4Y8VwchDzoej6yW0Hi5gPz7khaRmtGYIO6Kav/5dlNrlf2Uo iP6g== X-Gm-Message-State: ALyK8tLQwrhn0Bt+ybV1HJcd9f3lnXeXx5y4miMHt+ZlG8obnG+bBql94fbKCg25Sye54p5M X-Received: by 10.98.110.195 with SMTP id j186mr34095696pfc.49.1467739959642; Tue, 05 Jul 2016 10:32:39 -0700 (PDT) Received: from localhost ([59.183.144.74]) by smtp.gmail.com with ESMTPSA id d8sm6334692pfg.72.2016.07.05.10.32.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jul 2016 10:32:38 -0700 (PDT) Date: Tue, 05 Jul 2016 17:32:00 -0000 X-Google-Original-Date: Tue, 05 Jul 2016 17:32:33 GMT Content-Type: text/plain From: Manish Goregaokar Subject: Re: [PATCH] Allow subscripting raw pointers Cc: gdb-patches@sourceware.org, Tom Tromey User-Agent: GaiaMail/0.2 Message-Id: <1467739954112.ab2ed64e1ba@mozgaia> References: <87r3b8gfyd.fsf@tromey.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2016-07/txt/msg00079.txt.bz2 I am using git format-patch and pasting it into GMail text mode. Probably s= hould set up mutt; haven't yet because I was behind a port-blocked universi= ty connection for years :) I'll see what I can do. Tom Tromey wrote: > Manish> 2016-07-04 Manish Goregaokar > Manish> gdb/ChangeLog: > Manish> * rust-lang.c (rust_subscript): Allow subscripting pointers > Manish> gdb/testsuite/ChangeLog: > Manish> * simple.rs: Add test for raw pointer subscripting > Manish> * simple.exp: Add test expectations > > This is ok. Thanks. > > Manish> + else if (TYPE_CODE (type) =3D=3D TYPE_CODE_PTR) > Manish> + { > Manish> + base =3D lhs; > Manish> + low_bound =3D 0; > Manish> + high_bound =3D LONGEST_MAX; > Manish> + } > Manish> else > > I suspect maybe your MUA is misconfigured somehow? Your patches often > come out looking like the indentation is messed up; but in this case the > context makes it clear that the indentation is probably ok. > > Tom