From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7175 invoked by alias); 17 Dec 2013 22:08:51 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 7162 invoked by uid 89); 17 Dec 2013 22:08:50 -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,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ee0-f47.google.com Received: from mail-ee0-f47.google.com (HELO mail-ee0-f47.google.com) (74.125.83.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 17 Dec 2013 22:08:49 +0000 Received: by mail-ee0-f47.google.com with SMTP id e51so2667197eek.20 for ; Tue, 17 Dec 2013 14:08:46 -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:cc:content-type; bh=F9s1gNnZfnWSDKBXNrd/lwwd2N/8SMU1+wiXzX4FKis=; b=KmmXkcRhSgzb94dTzDHxLKH9vD7cnDQfCbeNEC82KRbdRfGUHVBh/5oAqUld3mL0Jw in9PrFaW2qu14j02tvf/zdddx65xAgwl4DSNxOdeBrIul6mPLNMw4au1C6NeqM0pIZQl ZnPYigAWHFYZQgO8eJZmUkx/Nu1jdiugn6RDgomgjo2K9HDD8rLFwzD8L3vVZhPT7ozO pgPs/NG0yCyeUjrXRtawrwcAW4a/3JIacA0j6ddxIdT1pbndt0NtOrqHn0ydKhNryfYf FImZO4wrlUnDnhYdVJjOyl+SrrXPGrJFWwPVHfg/j2UafflcSya9KaXbAPlq1M79nW+G TniA== X-Gm-Message-State: ALoCoQkseszVwRa+xcTJGYImpyi2QHuSNwqkjJ23Pv22CWwTdeOOUCqGWh02bocKvElEsPJeAC93RIGncBYTWQ0OWdUSZekEO537wJDrgejieKFNaf7hf07BboRYjorPA7xNZOzUECPSeY7LSsgBG5U146O67UvlRkjNW4VF3h7KRWjRV6/T4Oz85+G/56XlVy3IvlTwN1hZ MIME-Version: 1.0 X-Received: by 10.14.218.69 with SMTP id j45mr25487134eep.22.1387318126763; Tue, 17 Dec 2013 14:08:46 -0800 (PST) Received: by 10.14.151.72 with HTTP; Tue, 17 Dec 2013 14:08:46 -0800 (PST) In-Reply-To: References: <87bo0gpg4f.fsf@fleche.redhat.com> Date: Tue, 17 Dec 2013 22:08:00 -0000 Message-ID: Subject: Re: Invoking methods on gdb.Value objects and other ideas From: Siva Chandra To: Tom Tromey Cc: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00043.txt.bz2 Tom> The above seem to be found methods, but it seems that to be complete Tom> you'd also want a way to create a C++ pointer-to-member. I guess this Tom> is more cleanly done via the Type API, or perhaps a method on your Tom> proposed TypeMethod object. Siva> About C++ pointer-to-member values, I think they are in a way methods Siva> already, and hence could just be invoked by '(...)' method invocation? I think I misread Tom here. I agree with Tom that a method on gdb.TypeMethod objects could return a gdb.TypeMethodPtr object. [With my little experience with GDB, I always use an example to understand what TYPE_CODE_METHOD and TYPE_CODE_METHODPTR are supposed to mean and how they differ. Added to this, if type_obj is a gdb.Type object of type TYPE_CODE_METHOD, type_obj.pointer() does not give a TYPE_CODE_METHODPTR object!]