From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1755 invoked by alias); 1 Aug 2008 16:18:02 -0000 Received: (qmail 1720 invoked by uid 71); 1 Aug 2008 16:18:02 -0000 Resent-Date: 1 Aug 2008 16:18:02 -0000 Resent-Message-ID: <20080801161802.1716.qmail@sourceware.org> Resent-From: gdb-gnats@sources.redhat.com (GNATS Filer) Resent-To: nobody@sources.redhat.com Resent-Cc: gdb-prs@sources.redhat.com Resent-Reply-To: gdb-gnats@sources.redhat.com, pmuldoon@redhat.com Received: (qmail 1352 invoked by uid 48); 1 Aug 2008 16:16:28 -0000 Message-Id: <20080801161628.1351.qmail@sourceware.org> Date: Fri, 01 Aug 2008 16:18:00 -0000 From: pmuldoon@redhat.com Reply-To: pmuldoon@redhat.com To: gdb-gnats@sources.redhat.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/2489: foo. cli completion should include class functions as well as class variables Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2008-q3/txt/msg00046.txt.bz2 >Number: 2489 >Category: c++ >Synopsis: foo. cli completion should include class functions as well as class variables >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Aug 01 16:18:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: pmuldoon@redhat.com >Release: 6.8 >Organization: >Environment: Linux >Description: In the CLI, foo. where foo is a class should display, and allow completion for, all members of that class. This includes variables and functions. At the moment, only variables are included. >How-To-Repeat: Use included simple class example object_bug.cxx. Break on main. After local class initialisation, in the cli type foo1.. Note that only variables are included for auto-completion. >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/x-c++src; name="object_bug.cxx" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="object_bug.cxx" I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNsYXNzIEZvbyAgICAK ewoKcHJpdmF0ZToKICBpbnQgZm9vX3ZhbHVlOwoKcHVibGljOgogIEZvbyAoKSB7IGZvb192YWx1 ZSA9IDA7fQogIEZvbyAoaW50IGkpIHsgZm9vX3ZhbHVlID0gaTt9CiAgdm9pZCBzZXRfZm9vIChp bnQgdmFsdWUpOwogIGludCBnZXRfZm9vICgpOwp9OwogCnZvaWQgRm9vOjpzZXRfZm9vIChpbnQg dmFsdWUpCnsKICBmb29fdmFsdWUgPSB2YWx1ZTsKfQoKaW50IEZvbzo6Z2V0X2ZvbyAoKQp7CiAg cmV0dXJuIGZvb192YWx1ZTsKfQoKaW50IG1haW4gKCkKewogIEZvbyBmb28xOwogIGZvbzEuc2V0 X2ZvbyAoNDIpOwogIGNvdXQgPDwgIlZhbHVlIG9mIGZvbzogIiA8PCBmb28xLmdldF9mb28gKCkg PDwgZW5kbDsKICByZXR1cm4gMDsKfQoK