[Bug cli/20819] New: Binding Control-j in inputrc breaks "layout asm"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug cli/20819] New: Binding Control-j in inputrc breaks "layout asm"

rootedjoy833 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20819

            Bug ID: 20819
           Summary: Binding Control-j in inputrc breaks "layout asm"
           Product: gdb
           Version: 7.7
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: cli
          Assignee: unassigned at sourceware dot org
          Reporter: wchargin at gmail dot com
  Target Milestone: ---

Steps to reproduce:
 1. Replace contents of ~/.inputrc with the single line "Control-j:
    menu-complete".
 2. Open gdb.
 3. Enter "layout asm" and press Enter.
 4. Type "help" and press Enter.

Expected behavior: the help menu should appear.

Actual behavior: the prompt begins menu-completing through "help <",
"help >", "help -", "help !", "help +", "help actions", "help
add-auto-load-safe-path", etc.

Hypothesis: because J is ASCII 0x4a, Ctrl-J is 0x4a & ~(0x40), and so a
newline character 0x0a is incorrectly triggering menu-complete.

Note that this behavior does not impact other programs that use
readline, like bash(1) and python(1).

This is GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug tui/20819] Binding Control-j in inputrc breaks "layout asm"

rootedjoy833 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20819

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|cli                         |tui

--
You are receiving this mail because:
You are on the CC list for the bug.