public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/14636] New: Tab completion issues in C++
@ 2012-09-27 19:56 jakub at redhat dot com
  2012-09-28 10:52 ` [Bug gdb/14636] " jan.kratochvil at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jakub at redhat dot com @ 2012-09-27 19:56 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14636

             Bug #: 14636
           Summary: Tab completion issues in C++
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jakub@redhat.com
    Classification: Unclassified


cat > a.ii <<\EOF
# 1 "a.C"
# 1 "a1.h" 1
struct basic_block_def;
typedef basic_block_def *basic_block;
# 2 "a.C" 2
# 1 "a2.h" 1
struct basic_block_def
{
  int index;
};
# 3 "a.C" 2

__attribute__((noinline, noclone)) static void
foo (basic_block x, int y)
{
  __asm volatile ("" : : : "memory");
}

int
main ()
{
  foo ((basic_block) 0, 0);
}
EOF
g++ -g -o a a.ii
gdb ./a
p foo<tab>

This will print just
(gdb) p foo(basic_block
and stop there, even when the function isn't overloaded, and further tab is
about just completing the basic_block word, not the whole function name.
I don't care much which equivalent typedef is chosen in the tab completion, but
would prefer if just one of them (slight preference might be what is used in
the sources if there is just one alternative).

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gdb/14636] Tab completion issues in C++
  2012-09-27 19:56 [Bug gdb/14636] New: Tab completion issues in C++ jakub at redhat dot com
@ 2012-09-28 10:52 ` jan.kratochvil at redhat dot com
  2014-02-14 15:35 ` gbenson at redhat dot com
  2023-12-31 15:05 ` ssbssa at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-09-28 10:52 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14636

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat
                   |                            |dot com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gdb/14636] Tab completion issues in C++
  2012-09-27 19:56 [Bug gdb/14636] New: Tab completion issues in C++ jakub at redhat dot com
  2012-09-28 10:52 ` [Bug gdb/14636] " jan.kratochvil at redhat dot com
@ 2014-02-14 15:35 ` gbenson at redhat dot com
  2023-12-31 15:05 ` ssbssa at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: gbenson at redhat dot com @ 2014-02-14 15:35 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14636

Gary Benson <gbenson at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gbenson at redhat dot com

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gdb/14636] Tab completion issues in C++
  2012-09-27 19:56 [Bug gdb/14636] New: Tab completion issues in C++ jakub at redhat dot com
  2012-09-28 10:52 ` [Bug gdb/14636] " jan.kratochvil at redhat dot com
  2014-02-14 15:35 ` gbenson at redhat dot com
@ 2023-12-31 15:05 ` ssbssa at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: ssbssa at sourceware dot org @ 2023-12-31 15:05 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14636

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |10.1
                 CC|                            |ssbssa at sourceware dot org

--- Comment #2 from Hannes Domani <ssbssa at sourceware dot org> ---
Since gdb-10.1 the completion works as expected:
```
(gdb) complete p foo
p foo(basic_block, int)
```

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-31 15:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-27 19:56 [Bug gdb/14636] New: Tab completion issues in C++ jakub at redhat dot com
2012-09-28 10:52 ` [Bug gdb/14636] " jan.kratochvil at redhat dot com
2014-02-14 15:35 ` gbenson at redhat dot com
2023-12-31 15:05 ` ssbssa at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).