c++/2489: foo.<tab> cli completion should include class functions as well as class variables
pmuldoon@redhat.com
pmuldoon@redhat.com
Fri Aug 1 16:18:00 GMT 2008
>Number: 2489
>Category: c++
>Synopsis: foo.<tab> 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.<tab> 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.<tab>. 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
More information about the Gdb-prs
mailing list