public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/12908] New: Method complete of gdb.Command is never called
@ 2011-06-17 14:14 krzykwas at gmail dot com
2011-06-17 15:42 ` [Bug python/12908] " tromey at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: krzykwas at gmail dot com @ 2011-06-17 14:14 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12908
Summary: Method complete of gdb.Command is never called
Product: gdb
Version: archer
Status: NEW
Severity: normal
Priority: P2
Component: python
AssignedTo: unassigned@sourceware.org
ReportedBy: krzykwas@gmail.com
Created attachment 5801
--> http://sourceware.org/bugzilla/attachment.cgi?id=5801
Implementation of channel-run command.
I want to customize completion of my own python-implemented gdb command. For
that I have followed the documentation and implemented a method „complete”.
Upon being executed, that method should print „test” to stdout, however this
message never appears, so „complete” is never called. I have attached the class
implementing the problematic command. Full code of my project is available in a
fossil repository here:
http://chiselapp.com/user/krzykwas/repository/nredebug1/home
To reproduce the failure:
1. run gdb
2. source /path/to/ChannelRun.py
3. enter „channel-run” and press <TAB>
Expected behaviour: message „test” appears.
Observed bahaviour: nothing happens.
--
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] 2+ messages in thread
* [Bug python/12908] Method complete of gdb.Command is never called
2011-06-17 14:14 [Bug python/12908] New: Method complete of gdb.Command is never called krzykwas at gmail dot com
@ 2011-06-17 15:42 ` tromey at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: tromey at redhat dot com @ 2011-06-17 15:42 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12908
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |tromey at redhat dot com
Resolution| |INVALID
--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2011-06-17 15:41:43 UTC ---
The problem is in your class's __init__ method.
It is passing "False" as the "completer" argument.
When I change it to this it works:
super(ChannelRun, self).__init__("channel-run", gdb.COMMAND_SUPPORT, prefix =
False)
... but really you don't need that last argument at all.
--
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] 2+ messages in thread
end of thread, other threads:[~2011-06-17 15:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-17 14:14 [Bug python/12908] New: Method complete of gdb.Command is never called krzykwas at gmail dot com
2011-06-17 15:42 ` [Bug python/12908] " tromey at redhat dot com
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).