This is the mail archive of the gdb@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: gdb-mi mode- issues with command history and left and right keys


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.


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