Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jumping in source window #53

Closed
c02y opened this issue Sep 21, 2014 · 3 comments
Closed

Jumping in source window #53

c02y opened this issue Sep 21, 2014 · 3 comments

Comments

@c02y
Copy link

c02y commented Sep 21, 2014

Is there any command for me to jump in source window, such as jump to the next/previous breakpoint, jump back to the currently executing line when that line is not in sight.....

@brasko
Copy link
Contributor

brasko commented Sep 21, 2014

On Sat, Sep 20, 2014 at 09:05:56PM -0700, codychan wrote:

Is there any command for me to jump in source window, such as jump to the next/previous breakpoint, jump back to the currently executing line when that line is not in sight.....

There isn't. But for the last one, you could make a macro that runs the
commands 'up' followed by 'down', which will have gdb put you on the
currently executing line I believe.

Bob Rossi

@mmueller
Copy link
Member

I think the 'f'rame command will have the same effect, and works even if
you're at the top or bottom frame of the stack. (It's a hack, but it works.)
On Sep 21, 2014 12:19 PM, "brasko" notifications@github.com wrote:

On Sat, Sep 20, 2014 at 09:05:56PM -0700, codychan wrote:

Is there any command for me to jump in source window, such as jump to
the next/previous breakpoint, jump back to the currently executing line
when that line is not in sight.....

There isn't. But for the last one, you could make a macro that runs the
commands 'up' followed by 'down', which will have gdb put you on the
currently executing line I believe.

Bob Rossi


Reply to this email directly or view it on GitHub
#53 (comment).

@mikesart
Copy link
Contributor

mikesart commented Feb 7, 2017

I think you can use '. to jump to the currently executing line, and as Mike mentions, up/down and frame will also work. If you want something to jump to set bookmarks, please enter another bug and we'll take a look at that feature. Thanks!

@mikesart mikesart closed this as completed Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants