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: [RFC] A new command 'grep'


On Mon, Jan 2, 2012 at 1:28 AM, Kevin Pouget <kevin.pouget@gmail.com> wrote:
> On Mon, Jan 2, 2012 at 9:54 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>>
>> I think this is the first time we receive a proposal for a command
>> implemented in Python. ?Perhaps there's a place to discuss whether
>> some policy is in order in this regard. ?E.g., the command will be
>> unavailable in non-Python builds, which at least needs to be
>> documented. ?There may be other aspects that are worth discussing.
>
> I'm also curious about that, and maybe first of all, is there a Python
> specific coding convention likely to be enforced in GNU projects
> and/or GDB?

Sorry for the repeat.
[I wasn't aware the mail program I was using would sent it as rich html, sigh.]

For reference sake,
there are already some gdb commands in python,
see python/lib/gdb/command.
The pretty printer support there doesn't need to worry about
non-python builds of course.

As for coding convention, we follow pep008 with a few additions.
ref: http://sourceware.org/gdb/current/onlinedocs/gdbint/Coding-Standards.html#Coding-Standards


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