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

GDB backtrace/run commands #41

Open
Zman94 opened this issue Aug 7, 2017 · 1 comment
Open

GDB backtrace/run commands #41

Zman94 opened this issue Aug 7, 2017 · 1 comment

Comments

@Zman94
Copy link

Zman94 commented Aug 7, 2017

Hello. I was using this plugin and I noticed it was lacking a couple features that would be nice to have. Namely, it would be nice if there was a run command similar to that when you're inside the gdb debugger. This way, if the program crashes, you could rerun it without running VBGstartGDB again.

Second, it would be nice to be able to run backtrace or where analyze the stack during a run or after a crash without using the rawWrite command.

I hope these features are easy to add. When I free up again, I'll take a look at the code to see if I can add them myself.

@TamaMcGlinn
Copy link

TamaMcGlinn commented Dec 17, 2019

At first, I thought that your first suggestion was already implemented, but that was because I have this in my config files:

nnoremap <Leader>gr :VBGrawWrite run<CR>

(where <Leader>g is the same as my g:vebugger_leader, so I don't distinguish between extended and builtin mappings)

The second feature would be quite extensive; a seperate buffer would be opened showing the output of backtrace, where pressing enter on a certain line in there would be equivalent to sending the 'frame' command for that number. It would have to also update whenever a VBG command is issued, with an extra manual command in case someone issues a rawWrite command that changes the backtrace.

I do hope someone builds this.

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