* gdb-mi mode- issues with command history and left and right keys
@ 2011-09-08 15:32 Jusctsch
2011-09-08 15:40 ` Pedro Alves
0 siblings, 1 reply; 3+ messages in thread
From: Jusctsch @ 2011-09-08 15:32 UTC (permalink / raw)
To: gdb
Hello all,
When I enter gdb-mi mode on a bsd shell, I notice that I have no access to
the up and down arrow keys for history, and left and right keys for
travelling the line.
Is there a way to configure gdb-mi mode for these codes? Is this a shell
issue?
--
View this message in context: http://old.nabble.com/gdb-mi-mode--issues-with-command-history-and-left-and-right-keys-tp32424789p32424789.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gdb-mi mode- issues with command history and left and right keys
2011-09-08 15:32 gdb-mi mode- issues with command history and left and right keys Jusctsch
@ 2011-09-08 15:40 ` Pedro Alves
2011-09-08 15:56 ` Jusctsch
0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2011-09-08 15:40 UTC (permalink / raw)
To: gdb; +Cc: Jusctsch
On Thursday 08 September 2011 16:32:03, Jusctsch wrote:
>
> Hello all,
> When I enter gdb-mi mode on a bsd shell, I notice that I have no access to
> the up and down arrow keys for history, and left and right keys for
> travelling the line.
> Is there a way to configure gdb-mi mode for these codes? Is this a shell
> issue?
No, that's expected. gdb-mi mode does not support command line editing
(it doesn't use readline), as it's meant to be driven by a machine.
The workaround is to start in normal cli mode, and use interpreter-exec mi.
That's not the same, but it's close enough in most cases.
(I've wished MI used readline myself before thought).
--
Pedro Alves
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gdb-mi mode- issues with command history and left and right keys
2011-09-08 15:40 ` Pedro Alves
@ 2011-09-08 15:56 ` Jusctsch
0 siblings, 0 replies; 3+ messages in thread
From: Jusctsch @ 2011-09-08 15:56 UTC (permalink / raw)
To: gdb
Hence the Machine Interface moniker. That makes a lot of sense actually,
thanks!
Pedro Alves-10 wrote:
>
> On Thursday 08 September 2011 16:32:03, Jusctsch wrote:
>>
>> Hello all,
>> When I enter gdb-mi mode on a bsd shell, I notice that I have no access
>> to
>> the up and down arrow keys for history, and left and right keys for
>> travelling the line.
>> Is there a way to configure gdb-mi mode for these codes? Is this a shell
>> issue?
>
> No, that's expected. gdb-mi mode does not support command line editing
> (it doesn't use readline), as it's meant to be driven by a machine.
>
> The workaround is to start in normal cli mode, and use interpreter-exec
> mi.
> That's not the same, but it's close enough in most cases.
>
> (I've wished MI used readline myself before thought).
>
> --
> Pedro Alves
>
>
--
View this message in context: http://old.nabble.com/gdb-mi-mode--issues-with-command-history-and-left-and-right-keys-tp32424789p32424984.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-09-08 15:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-08 15:32 gdb-mi mode- issues with command history and left and right keys Jusctsch
2011-09-08 15:40 ` Pedro Alves
2011-09-08 15:56 ` Jusctsch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).