Make the "python" command resemble the standard Python interpreter
Paul_Koning@Dell.com
Paul_Koning@Dell.com
Thu Jan 12 17:38:00 GMT 2012
Yes, but I think the benefits outweigh the small imcompatibility.
paul
-----Original Message-----
From: Doug Evans [mailto:dje@google.com]
Sent: Thursday, January 12, 2012 12:28 PM
To: Koning, Paul
Cc: khooyp@cs.umd.edu; gdb-patches@sourceware.org
Subject: Re: Make the "python" command resemble the standard Python interpreter
On Thu, Jan 12, 2012 at 8:52 AM, <Paul_Koning@dell.com> wrote:
>>There already is an established behaviour for python without arguments (with or without a terminal).
>>
>>(gdb) python
>> > print 1 + 2
>> > end
>>3
>>(gdb)
>>
>>I've read the thread and I don't seen anyone raising this issue (could have missed it though. I saw Tom's message re: what output CLI will generate, but this is about behaviour).
>>I've read the patch and I don't think using from_tty is ok to select between the different behaviours.
>>
>>Can we pick a different way of invoking the python interpreter?
>
> But "python" seems rather an intuitive way of doing it.
I COMPLETELY AGREE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
However, this changes things incompatibly ...
More information about the Gdb-patches
mailing list