* Backspace problem on GDB
[not found] <f988e6d80803191342m6ec36ff8l686b0c59dfeca172@mail.gmail.com>
@ 2008-03-19 20:51 ` José Tomás Eterovic
2008-03-19 21:09 ` Brian Dessent
0 siblings, 1 reply; 6+ messages in thread
From: José Tomás Eterovic @ 2008-03-19 20:51 UTC (permalink / raw)
To: gdb
Hi
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?
Best Regards
Jose Eterovic
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Backspace problem on GDB
2008-03-19 20:51 ` Backspace problem on GDB José Tomás Eterovic
@ 2008-03-19 21:09 ` Brian Dessent
2008-03-19 21:25 ` José Tomás Eterovic
0 siblings, 1 reply; 6+ messages in thread
From: Brian Dessent @ 2008-03-19 21:09 UTC (permalink / raw)
To: José Tomás Eterovic; +Cc: gdb
José Tomás 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Backspace problem on GDB
2008-03-19 21:09 ` Brian Dessent
@ 2008-03-19 21:25 ` José Tomás Eterovic
2008-03-19 21:58 ` Michael Snyder
2008-03-20 7:45 ` Brian Dessent
0 siblings, 2 replies; 6+ messages in thread
From: José Tomás Eterovic @ 2008-03-19 21:25 UTC (permalink / raw)
To: gdb
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=emacs
# 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 <brian@dessent.net> wrote:
> José Tomás 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
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Backspace problem on GDB
2008-03-19 21:25 ` José Tomás Eterovic
@ 2008-03-19 21:58 ` Michael Snyder
2008-03-20 7:45 ` Brian Dessent
1 sibling, 0 replies; 6+ messages in thread
From: Michael Snyder @ 2008-03-19 21:58 UTC (permalink / raw)
To: José Tomás Eterovic; +Cc: gdb
On Wed, 2008-03-19 at 18:08 -0300, José Tomás Eterovic wrote:
> 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
[...]
That seems to be the default /etc/inputrc, as supplied by
(for example) fedora.
This should not be the source of your problem.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Backspace problem on GDB
2008-03-19 21:25 ` José Tomás Eterovic
2008-03-19 21:58 ` Michael Snyder
@ 2008-03-20 7:45 ` Brian Dessent
2009-10-30 15:55 ` Alm P
1 sibling, 1 reply; 6+ messages in thread
From: Brian Dessent @ 2008-03-20 7:45 UTC (permalink / raw)
To: José Tomás Eterovic; +Cc: gdb
José Tomás Eterovic wrote:
> 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
What does "echo $TERM" say and what terminal are you using? What gets
sent when you press backspace? You can find out the latter with most
shells by first pressing control-V then the key in question. It should
be either ^H or ^? if it's anything like most standard terminals. You
can fool around with putting something like
"C-H" backward-delete-char
or
"C-?" backward-delete-char
in your $HOME/.inputrc, or as appropriate for whatever sequence your
terminal sends for backspace. There should be a readline man page on
the system too that you can consult.
Brian
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Backspace problem on GDB
2008-03-20 7:45 ` Brian Dessent
@ 2009-10-30 15:55 ` Alm P
0 siblings, 0 replies; 6+ messages in thread
From: Alm P @ 2009-10-30 15:55 UTC (permalink / raw)
To: gdb
This was good information and it helped me a lot. Thanks.
One note: You should put "^?" (quote-carat-questionmark-quote) instead of
"C-?" which might be a typo in Brian's email. The latter kept deleting
capital C.
-AP
Brian Dessent wrote:
>
> José Tomás Eterovic wrote:
>
>> 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
>
> What does "echo $TERM" say and what terminal are you using? What gets
> sent when you press backspace? You can find out the latter with most
> shells by first pressing control-V then the key in question. It should
> be either ^H or ^? if it's anything like most standard terminals. You
> can fool around with putting something like
>
> "C-H" backward-delete-char
>
> or
>
> "C-?" backward-delete-char
>
> in your $HOME/.inputrc, or as appropriate for whatever sequence your
> terminal sends for backspace. There should be a readline man page on
> the system too that you can consult.
>
> Brian
>
>
--
View this message in context: http://www.nabble.com/Backspace-problem-on-GDB-tp16164522p26104413.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-10-29 0:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <f988e6d80803191342m6ec36ff8l686b0c59dfeca172@mail.gmail.com>
2008-03-19 20:51 ` Backspace problem on GDB José Tomás Eterovic
2008-03-19 21:09 ` Brian Dessent
2008-03-19 21:25 ` José Tomás Eterovic
2008-03-19 21:58 ` Michael Snyder
2008-03-20 7:45 ` Brian Dessent
2009-10-30 15:55 ` Alm P
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox