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

Allow level parameter in frame #35

Open
oriolarcas opened this issue Feb 2, 2017 · 4 comments
Open

Allow level parameter in frame #35

oriolarcas opened this issue Feb 2, 2017 · 4 comments

Comments

@oriolarcas
Copy link

GDB frame command can simultaneously select the stack level and display the frame.

This patch does the same:

define frame
    if $argc == 1
        select-frame $arg0
    end
    info frame
    info args
    info locals
end
document frame
Syntax: frame <LEVEL>
| Print current stack frame, or the LEVEL stack frame.
end
@ObiWahn
Copy link

ObiWahn commented Apr 4, 2017

Selecting frames via f / frame #num does not work please do not replace build in commands.

@oriolarcas
Copy link
Author

Since this is what gdbinit does already, this patch fixes this problem.

@ObiWahn
Copy link

ObiWahn commented Apr 6, 2017

So with your patch:

f 6
l

should work?

@oriolarcas
Copy link
Author

oriolarcas commented Apr 19, 2017

Yes, "f [frame number]" works with this patch.

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

2 participants