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: Patches to improve the gdbtui user experience


Pedro Alves wrote:
Jan Holesovsky wrote:
don't quit
      SingleKey by 'q' when it's activated by a nontrivial ctrl+x
> combination - the user is smart enough to exit this mode.

If the only command gdb knows starting with 'q' is "quit", what
is the use?  What is it preventing you to type?  Maybe
a target/host specific command?  At least on cygwin 'q' is not
ambiguous.  On the other hand, if you're in in single key mode, and
want to type "quit", you have to type "qquit", since the first 'q' is
eaten, else you'll end up typing "uit" :)  I guess it's a matter of
personal taste either way.


Let me just add a note to say that in my opinion, entering 'one command mode' with any other key (that is, a key that has no binding in 'single key mode'), is broken. One has to remember which keys are bound, and which aren't - that makes it too easy to accidently issue some command you didn't want to. Something like pressing <space> to enter 'one command mode' would make much more sense to me - principle of least surprise.

eg:
I want to type 'info something', and I currently can because
'i' is not bound to anything.  With your patch, 'i' would
stepi.  There ya go, I just stepped accidently, possibly over a
jmp, when I didn't want to.  I might have wanted to 'return 0',
for example.

Cheers,
Pedro Alves



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