tui/2173: Arrow keys no longer works in breakpoint command list
hjl@lucon.org
hjl@lucon.org
Thu Sep 21 16:48:00 GMT 2006
>Number: 2173
>Category: tui
>Synopsis: Arrow keys no longer works in breakpoint command list
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 21 16:48:01 UTC 2006
>Closed-Date:
>Last-Modified:
>Originator: hjl@lucon.org
>Release: 6.5.50.20060920-cvs
>Organization:
>Environment:
Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
>Description:
[hjl@gnu-26 hist]$ cat x.c
#include <stdio.h>
int
main ()
{
printf ("hello\n");
return 0;
}
[hjl@gnu-26 hist]$ gcc -g x.c
[hjl@gnu-26 hist]$ gdb a.out
GNU gdb 6.5.50.20060920-cvs
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...
Using host libthread_db library "/lib64/tls/libthread_db.so.1".
(gdb) p main
$1 = {int ()} 0x400478 <main>
(gdb) b main
Breakpoint 1 at 0x40047c: file x.c, line 6.
(gdb) command 1
Type commands for when breakpoint 1 is hit, one per line.
End with a line saying just "end".
> [A[A[A
When I pressed the up arrow key, I only got "[A". With
the older gdb, I got
[hjl@gnu-26 hist]$ /usr/bin/gdb a.out
GNU gdb Red Hat Linux (6.3.0.0-1.132.EL4rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db library "/lib64/tls/libthread_db.so.1".
(gdb) p main
$1 = {int ()} 0x400478 <main>
(gdb) b main
Breakpoint 1 at 0x40047c: file x.c, line 6.
(gdb) command 1
Type commands for when breakpoint 1 is hit, one per line.
End with a line saying just "end".
> command 1
When I pressed the up arrow key, I got the last command
I typed.
>How-To-Repeat:
1. Set a breakpoint.
2. Use "command breakpoint number".
3. Use up arrow key to select the previous commands for
breakpoint command list.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gdb-prs
mailing list