When a reverse-i-search fails, pressing ctrl+C clears the (gdb) prompt but does not terminate the i-search: 1. Initiate a reverse-i-search with no match 2. Upon failure, press ctrl+C (the prompt clears) 3. Press enter => the last successful match in the reverse-i-search is executed, even though the (gdb) prompt is blank This can potentially mess up the debugger state and cause the user a huge amount of trouble. I cannot find any way to terminate a reverse-i-search without executing some command from the history.
Indeed, I can reproduce.
Dup. *** This bug has been marked as a duplicate of bug 21690 ***