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

Need to pass "--frame N" to some gdb/mi commands. #14

Closed
epasveer opened this issue Jan 30, 2022 · 1 comment
Closed

Need to pass "--frame N" to some gdb/mi commands. #14

epasveer opened this issue Jan 30, 2022 · 1 comment
Assignees

Comments

@epasveer
Copy link
Owner

When adding a breakpoint/printpoint, the "--frame N" argument needs to be provided if the user is trying to set a point with just the line number.

The gdb doc says:

 -stack-select-frame framenum
 This command in deprecated in favor of passing the ‘--frame’ option to every command.
@epasveer
Copy link
Owner Author

epasveer commented Feb 6, 2022

gdbmi no longer supports:

-stack-select-frame %1

So use the non-gdbmi version:

frame %1

For now, this is better than maintaining the current stack frame. Also, it looks like inserting a breakpoint doesn't support a stackframe, anyways.

@epasveer epasveer closed this as completed Feb 6, 2022
@epasveer epasveer self-assigned this Feb 15, 2022
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

1 participant