From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27965 invoked by alias); 8 Sep 2011 15:40:31 -0000 Received: (qmail 27764 invoked by uid 22791); 8 Sep 2011 15:40:28 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Sep 2011 15:40:14 +0000 Received: from nat-dem.mentorg.com ([195.212.93.2] helo=eu2-mail.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1R1gi5-00018h-9i from pedro_alves@mentor.com ; Thu, 08 Sep 2011 08:40:13 -0700 Received: from scottsdale.localnet ([172.16.63.104]) by eu2-mail.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 8 Sep 2011 17:40:11 +0200 From: Pedro Alves To: gdb@sourceware.org Subject: Re: gdb-mi mode- issues with command history and left and right keys Date: Thu, 08 Sep 2011 15:40:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.7.0; x86_64; ; ) Cc: Jusctsch References: <32424789.post@talk.nabble.com> In-Reply-To: <32424789.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201109081640.09886.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-09/txt/msg00027.txt.bz2 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