Bug 22808 - Impossible to terminate a reverse-i-search
Summary: Impossible to terminate a reverse-i-search
Status: RESOLVED DUPLICATE of bug 21690
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 7.12.1
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-07 10:31 UTC by Byron Hawkins
Modified: 2020-04-08 13:24 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed: 2018-02-07 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Byron Hawkins 2018-02-07 10:31:35 UTC
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.
Comment 1 Simon Marchi 2018-02-07 13:00:05 UTC
Indeed, I can reproduce.
Comment 2 Hannes Domani 2020-04-08 13:24:27 UTC
Dup.

*** This bug has been marked as a duplicate of bug 21690 ***