From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28615 invoked by alias); 19 Mar 2008 21:09:26 -0000 Received: (qmail 28604 invoked by uid 22791); 19 Mar 2008 21:09:25 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.175) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 19 Mar 2008 21:09:03 +0000 Received: by ug-out-1314.google.com with SMTP id h2so2303955ugf.12 for ; Wed, 19 Mar 2008 14:08:58 -0700 (PDT) Received: by 10.67.29.4 with SMTP id g4mr873836ugj.82.1205960937231; Wed, 19 Mar 2008 14:08:57 -0700 (PDT) Received: by 10.66.255.5 with HTTP; Wed, 19 Mar 2008 14:08:57 -0700 (PDT) Message-ID: Date: Wed, 19 Mar 2008 21:25:00 -0000 From: "=?ISO-8859-1?Q?Jos=E9_Tom=E1s_Eterovic?=" To: gdb@sourceware.org Subject: Re: Backspace problem on GDB In-Reply-To: <47E17FA3.72F904E6@dessent.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <47E17FA3.72F904E6@dessent.net> 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: 2008-03/txt/msg00168.txt.bz2 I'm using csh, so didn't realize I had the same problem on bash (and I do have it), $HOME/.inputrc doesn't exist, but /etc/inputrc has # do not bell on tab-completion #set bell-style none set meta-flag on set input-meta on set convert-meta off set output-meta on # Completed names which are symbolic links to # directories have a slash appended. set mark-symlinked-directories on $if mode=3Demacs # for linux console and RH/Debian xterm "\e[1~": beginning-of-line "\e[4~": end-of-line "\e[5~": beginning-of-history "\e[6~": end-of-history "\e[3~": delete-char "\e[2~": quoted-insert "\e[5C": forward-word "\e[5D": backward-word "\e[1;5C": forward-word "\e[1;5D": backward-word # for rxvt "\e[8~": end-of-line # for non RH/Debian xterm, can't hurt for RH/DEbian xterm "\eOH": beginning-of-line "\eOF": end-of-line # for freebsd console "\e[H": beginning-of-line "\e[F": end-of-line $endif I don't have root access to the machine, so if you could tell me what can I put on .inputrc to fix that would be great Best Regards Jose Eterovic On Wed, Mar 19, 2008 at 6:03 PM, Brian Dessent wrote: > Jos=E9 Tom=E1s Eterovic wrote: > > > I'm using gdb 6.3.0.0-1.132.EL4rh, and when I press the backspace key > > (trying to delete the left character) I'm deleting the complete word > > to my left, anyone has an idea about what's going on here and how can > > I fix that? > > Do you have something strange in $HOME/.inputrc or /etc/inputrc? gdb > uses the readline library for interactive input and those are the config > files it reads at startup. If you do have either or both of them try > temporarily moving/renaming them away and see if the problem goes away. > It is a little strange that this wouldn't happen in other apps though, > because e.g. bash also uses readline. > > Brian >