Bug 15747

Summary: Python needs COMPLETE_EXPRESSION
Product: gdb Reporter: Tom Tromey <tromey>
Component: pythonAssignee: Phil Muldoon <pmuldoon>
Status: RESOLVED FIXED    
Severity: normal CC: pmuldoon
Priority: P2    
Version: HEAD   
Target Milestone: 7.7   
Host: Target:
Build: Last reconfirmed:

Description Tom Tromey 2013-07-16 19:20:40 UTC
Python commands can request some built-in completers.
gdb provides a complete_expression function, but there
is no way to request this from Python.
Python should provide COMPLETE_EXPRESSION for this.
Comment 1 Sourceware Commits 2013-11-07 12:33:24 UTC
       via  92e32e33f16b40988327df8e8beacf3a8a356916 (commit)
      from  f76c27b5bdd446964d9920464b2f761ae7a4f62a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=92e32e33f16b40988327df8e8beacf3a8a356916

commit 92e32e33f16b40988327df8e8beacf3a8a356916
Author: Phil Muldoon <pmuldoon@redhat.com>
Date:   Thu Nov 7 12:32:31 2013 +0000

    2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
    
            PR python/15747
            * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
    
    2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
    
            * gdb.python/py-cmd.exp: Add COMPLETE_EXPRESSION tests.
            * gdb.python/py-cmd.c: New File.
    
    2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
    
            * gdb.texinfo (Commands In Python): Document COMPLETE_EXPRESSION
            constant.

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog                                    |    5 +++
 gdb/doc/ChangeLog                                |    5 +++
 gdb/doc/gdb.texinfo                              |    7 ++++
 gdb/python/py-cmd.c                              |    1 +
 gdb/testsuite/ChangeLog                          |    5 +++
 gdb/testsuite/gdb.python/{py-arch.c => py-cmd.c} |    7 ++++
 gdb/testsuite/gdb.python/py-cmd.exp              |   42 +++++++++++++++++++--
 7 files changed, 68 insertions(+), 4 deletions(-)
 copy gdb/testsuite/gdb.python/{py-arch.c => py-cmd.c} (93%)
Comment 2 Phil Muldoon 2013-11-07 12:37:09 UTC
Fixed as per commit in comment #1