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

  • Home
  • SEARCH
  • 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 861457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:58:51+00:00 2026-05-15T08:58:51+00:00

How can I set Emacs gdb so that it shows the most recent command

  • 0

How can I set Emacs gdb so that it shows the most recent command when I press arrow-up?

In the Emacs gdb it will just go one line up in the buffer.

I know you can always just search backwards in the buffer and select a recent command there, but getting the command directly with arrow-up would be more convenient.

  • 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-05-15T08:58:51+00:00Added an answer on May 15, 2026 at 8:58 am

    C-h B tell me that C-up is bound to comint-previous-input whose documentation is

    Cycle backwards through input history, saving input.
    

    One could rebind this to up (and down for symmetry) with:

    (eval-after-load "gud"
      '(progn 
         (define-key gud-mode-map (kbd "<up>") 'comint-previous-input)
         (define-key gud-mode-map (kbd "<down>") 'comint-next-input)))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Users use 'M-x auto-revert-mode' for starting auto revert mode. How can I set the
How can I make emacs accept the period/dot from the keypad and insert a
I'd like to be able to set multiple marks in Emacs like Vim does.
I have pydbgr working well now in Emacs 23.2 with virtualenv . But I
I need to have different setup in .emacs depending on my system (Mac or
The challenge of upgrading from Emacs 21.2 to 23.2 continues... In my .emacs I
I need to get the full path of the file that I'm editing with
The page 49 of org mode manual has the following comment. To limit tag
I use TextMate to debug python script, as I like the feature of using
I'm managing $HOME using Mercurial, to keep my dotfiles nice and tracked, or at

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.