This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/12175] show_doc for gdb.Parameter has strange behaviour
- From: "pmuldoon at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 16 Nov 2010 15:14:21 +0000
- Subject: [Bug python/12175] show_doc for gdb.Parameter has strange behaviour
- Auto-submitted: auto-generated
- References: <bug-12175-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12175
--- Comment #4 from Phil Muldoon <pmuldoon at redhat dot com> 2010-11-16 15:14:09 UTC ---
Yeah, we can. First we would have to identify the parameter as being written
in Python. Then we would require the user to implement show/set documentation
functions in Python. Then, when the value printing/help parameter code
sections are executed in GDB we can check if it is a Python scripted parameter,
and if so then call into the Python object where it would return the
appropriate string for the above functions.
This would be an API regression on our part though. We might be able to do this
generically which would avoid requiring parameter API changes, but not sure
how.
--
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.