Bug 18476 - move the info/enable/disable command trio for python-based features into common code
Summary: move the info/enable/disable command trio for python-based features into comm...
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: python (show other bugs)
Version: HEAD
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-01 19:11 UTC by dje
Modified: 2015-06-01 19:11 UTC (History)
0 users

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 dje 2015-06-01 19:11:57 UTC
The code to implement the info/enable/disable command trio for python-based features is currently replicated for each features. pretty-printers, type-printers, xmethods, and so on.

This can lead to differences in command syntax and potentially inconsistent behaviour across the different objects, which is unfortunate.

IWBN if they all shared the same basic framework to implement these commands.
See https://sourceware.org/ml/gdb-patches/2015-04/msg00006.html
for a prototype of how to do this for Guile.