Bug 15747 - Python needs COMPLETE_EXPRESSION
Summary: Python needs COMPLETE_EXPRESSION
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: python (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: 7.7
Assignee: Phil Muldoon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-16 19:20 UTC by Tom Tromey
Modified: 2013-11-07 12:37 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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