gdb-mi mode- issues with command history and left and right keys
Pedro Alves
pedro@codesourcery.com
Thu Sep 8 15:40:00 GMT 2011
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
More information about the Gdb
mailing list