From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24820 invoked by alias); 20 Nov 2014 17:02:27 -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 24810 invoked by uid 89); 20 Nov 2014 17:02:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-oi0-f54.google.com Received: from mail-oi0-f54.google.com (HELO mail-oi0-f54.google.com) (209.85.218.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 20 Nov 2014 17:02:21 +0000 Received: by mail-oi0-f54.google.com with SMTP id u20so2292585oif.41 for ; Thu, 20 Nov 2014 09:02:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=qC7MN/8AeyC57ElLLnqEnO/Vcy3KZdzETvlsWrMg0gU=; b=LH0QmEq+bv9oQyaUESikEHz/ivjQlxJQcOIlBKS8t6nTmc1f1tmHf1HoUIf+Vbo26K Ba8rHj8xsdhJKzYAcEOOLZZyyg5qgHebcqphxujW1ED4o0nyGpdZNtyrdz4shmEBfkTD CA87yvsNPPycgUagnSnjGTwEii30OgcAVZlkryug7ovq/NxEd9daNpgZLToXg1HeXLKR sLq01ziqnXhE0KmJAhSKkXhoiJZBIxIbS8JDVADdNaa9n2IDhX4M/8f6YwnD9pyxmGSw z5BBp326fW/e9ymmcz6VoKv+cEYw5o7wdT/qjGsOFXaZKd39BIiugOWB+ubfqLbM5CoC rFTQ== X-Gm-Message-State: ALoCoQlCzc4TaxKNIaGsRCZpHunhUg1pu9ZsYvXXjEqf7NW1oWRHOFQnNVMz/cOhiOPStLp7jE7J MIME-Version: 1.0 X-Received: by 10.202.72.85 with SMTP id v82mr15352493oia.14.1416502939682; Thu, 20 Nov 2014 09:02:19 -0800 (PST) Received: by 10.202.177.3 with HTTP; Thu, 20 Nov 2014 09:02:19 -0800 (PST) In-Reply-To: References: Date: Thu, 20 Nov 2014 17:02:00 -0000 Message-ID: Subject: Re: [PATCH] Enable invoking overloaded operator() method on class and union values. From: Siva Chandra To: gdb-patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-11/txt/msg00480.txt.bz2 On Thu, Nov 20, 2014 at 8:56 AM, Siva Chandra wrote: > Hello, > > The attached patch enables invoking overloaded operator() method on > class and union values when evaluating expressions. > > [I expected that once this feature is in, invoking c++ lambdas would > also be possible naturally. However, It does not happen and I am > working on that.] To clarify, I do not think it is because of a deficiency in my patch, but because the debug info for lambdas is not read in and handled appropriately in GDB. > gdb/ChangeLog: > > 2014-11-20 Siva Chandra Reddy > > * eval.c (evaluate_subexp_standard): Extend handling of > OP_FUNCALL operation to enable invoking overloaded > operator() methods. > * gdbtypes.c (class_or_union_p): New function. > * gdbtypes.h (class_or_union_p): Declare. > > gdb/testsuite/ChangeLog: > > 2014-11-20 Siva Chandra Reddy > > * gdb.cp/member-ptr.exp: Modify expected pattern of > "print diamond.*diamond_pfunc_ptr (20)" and > "print diamond.*left_vpmf ()". > * gdb.cp/paren-op.cc: New file. > * gdb.cp/paren-op.exp: New file. > > Regression tested on x86_64 GNU/Linux. > > Thank you, > Siva Chandra