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 7585081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:05:13+00:00 2026-05-30T19:05:13+00:00

I have just discovered C-x C-a C-j (jump to cursor) when running gdb in

  • 0

I have just discovered C-x C-a C-j (jump to cursor) when running gdb in emacs. I initially assumed that it was the equivalent of setting a break wherever the cursor is and continuing (c) to that statement. However I seem to be observing the behaviour that when using jump none of the intervening statements (between the prev breakpoint and the current cursor location) are being executed. Can anyone confirm or deny this?

I guess if it isn’t executing the statements it is equivalent to being able to comment out a block of code ‘from within’ the debugger, i.e. without having to go back into the src, explicitly comment out and then recompile. I can see that could be useful, but it definitely wasn’t what I was expecting.

If that is what’s happening then a follow up question would be is there a ‘continue to cursor’ command (where the intervening statements do get executed)?

  • 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-30T19:05:14+00:00Added an answer on May 30, 2026 at 7:05 pm

    I believe what you need is C-x C-a C-u (M-x gud-until) instead of M-x gud-jump. The latter, as the Emacs manual quite clearly states, simply

    transfers the program’s execution point to the current line. In other words, the next line that the program executes will be the one where you gave the command […] See the GDB manual entry regarding jump for details.

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

Sidebar

Related Questions

I have just discovered a variable name that is misspelled. If it were hidden
I have a website, and I just discovered that somehow someone injected JavaScript on
I have just discovered that SQL Server CE doesn't allow you to batch queries.
I have just discovered that after upgrading to the latest Xcode 3.2.2, I am
I have just discovered that i need to start looking for a new job.
I have just discovered sylecop and am running it through my projects, I have
I just discovered that the Delphi TRibbonComboBox doesn't have an item index, and it
I have just discovered that my app doesn't run in 4.3 even though the
I have just discovered that UserControls in a TabControl will not load until the
I've just discovered that a script that I have to set a cookie does

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.