[Bug cli/25679] New: Symbol tab completion doesn't work with C++ demangled symbols

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug cli/25679] New: Symbol tab completion doesn't work with C++ demangled symbols

glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25679

            Bug ID: 25679
           Summary: Symbol tab completion doesn't work with C++ demangled
                    symbols
           Product: gdb
           Version: 9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: cli
          Assignee: unassigned at sourceware dot org
          Reporter: bugmenot at mailinator dot com
  Target Milestone: ---

Example: When compile and debug this program in gdb

```
#include<iostream>

template<int value>
void function(){
        std::cout<<value<<'\n';
}

int main(){
        function<0>();
        function<1>();
}
```

Type into the console `info function funct`, then press `tab` twice, the
console will display:

```
(gdb) info functions function
function                function_addrs          functions              
function<0>()           function_addrs_compare  functions_allocate      
function<1>()           function_vector         functions_deallocate    
(gdb) info functions function
```

However, when `info functions function<` is typed and tab is pressed twice,
completion does not work:

```
(gdb) info functions function<
Display all 200 possibilities? (y or n)
```

Expected result: similar to the location tab completion (for example used in
the `break` command):

```
(gdb) break function<
function<0>()  function<1>()  
(gdb) break function<
```

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug cli/25679] Symbol tab completion doesn't work with C++ templates

Sourceware - gdb-prs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=25679

Keith Seitz <keiths at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Symbol tab completion       |Symbol tab completion
                   |doesn't work with C++       |doesn't work with C++
                   |demangled symbols           |templates
                 CC|                            |keiths at redhat dot com
   Last reconfirmed|                            |2020-03-18
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #1 from Keith Seitz <keiths at redhat dot com> ---
The given test case concerns template parameter completions. This was never
completed upstream, but a patch was posted for it a while ago:

https://sourceware.org/pipermail/gdb-patches/2018-February/147052.html

I'm updating the summary.

--
You are receiving this mail because:
You are on the CC list for the bug.