This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/python:2/2] First script in GDB python library - command/pahole.py


On Wed, Jun 2, 2010 at 5:11 PM, Joel Brobecker <brobecker@adacore.com> wrote:
> (Doug asked whether we wanted the .py extension or not; either of us
> don't seem to have a strong opinion on it, although I do like it, and
> most editors will likely also appreciate having it to automatically
> activate the python edit mode).

For reference sake,
I was asking whether we needed command files for the prefixes, not
whether the files should have a .py suffix.

i.e.

instead of having .py files for each prefix and subprefix, in addition
to one for the command, as in

$dir/commands/prefix.py
$dir/commands/prefix/subprefix.py
$dir/commands/prefix/subprefix/my-command.py

just have

$dir/commands/prefix/subprefix/my-command.py

I like the consistency of the former, but I'm not sure what to do
about prefixes that already exist, e.g. enable, disable.
Or what to do if there are multiple command directories and several
have commands with the same prefix.

btw,
Prescanning the directories and creating stubs sounds reasonable.
How much of a stub though?
In addition to command completion there is help and apropos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]