Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9148557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:18:29+00:00 2026-06-17T11:18:29+00:00

When searching gdb command history, is there a way to go through only those

  • 0

When searching gdb command history, is there a way to go through only those command matching a given one?

for example, sometimes I only want to search previous break commands, not the entire command history. Is there a shortcut to only go through commands that start with “break” or “b”? That can save me a million keystroke.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:18:32+00:00Added an answer on June 17, 2026 at 11:18 am

    In regular GDB, CtrlR enables search mode. This works the same as bash, zsh, and many other shells.

    Once in search mode, the prompt changes:

    (reverse-i-search)`': 
    

    Typing letters then enters the text to find:

    (reverse-i-search)`br': break main
    

    To find the next command that matches, hit CtrlR again.

    To run the command again, hit Enter.

    To edit the command, hit the left or right cursor key.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Searching a name returns one result when there are several with the same last
Searching on the net I could not find any tutorials taking one through the
Searching for values that uses the same value Example SELECT Name, UnitPrice, Quantity, Color
Searching with '[Delphi] source control' didn't return much, so here goes: For those of
searching around trying to find a way to add index on suffix of a
Searching here and on the internet have not let me to a example of
Searching for a way to add this code, after the <head> (or some <link
Searching SO and Google, I've found that there are a few Java HTML parsers
Searching for rotators based on JQuery only finds the original rotator plugin and a
Searching one word works perfectly. I would like to have two or more words

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.