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
Termdebug: add frames window and :Frames, similar to :Asm #9235
Comments
This is just a suggestion as I'm not familiar enough neither with debugging, nor with this new window, but if you think you end up with too many windows, you might be interested in a popup window, because the latter can be displayed over the others, and can be toggled on and off (see You might also try to set every frame as an entry in the quickfix list (or the location list); this way, you could leverage all the builtin commands around the quickfix window like |
On that front, you might be interested in |
Popups would be space-wise interesting, but in one of my personal use cases not usable - #3208. (Or did I misinterpret that and a popup is totally different from balloons?) I'm not very familiar with the quickfix support - but that is very likely the best way to handle |
A popup is different than a balloon. See this Popup window gallery page on the wiki for a few screenshots and get an idea of what you could achieve. |
@brammool: Are you ok with a Frames Window? You know, just asking before I work more on that... @ all: With the quickfix list being "likely doable": would we still want an extra command for switching the frames #9234 or should this be dropped because the quickfix list will be usable for the navigation and "enough"? |
@lacygoill after a bit of hacking the quickfix list I see that the commands are nice - but the list isn't usable (or I've missed something). Also, as the stack frame may be always open a Any opinions and/or thoughts? BTW: is there a reasonable syntax for a stacktrace or even the default GDB backtrace format for the Frames window? |
@brammool: Are you ok with a Frames Window? You know, just asking
before I work more on that...
What would be this window? The output of "where"? Would it be possible
to navigate through frames?
…--
hundred-and-one symptoms of being an internet addict:
99. The hum of a cooling fan and the click of keys is comforting to you.
/// Bram Moolenaar -- ***@***.*** -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|
Yes, the output of where, updated on each "stop" (so step, brreakpoint reached, ...). I would like to "somehow" use the frames-window for navigation, but I don't know how to achieve this (it is just a buffer with text), and my try with quickfix list ended in "gdb must select the frame, not vim the file". |
Yes, the output of where, updated on each "stop" (so step, brreakpoint
reached, ...). I have navigation through frames implemented as `:Up`,
`:Down` (both using cli commands as the extension currently doesn't
keep track of the active frame) and `:Frame N`.
I _would like to_ "somehow" use the frames-window for navigation, but
I don't know how to achieve this (it is just a buffer with text), and
my try with quickfix list ended in "_gdb_ must select the frame, not
_vim_ the file".
Using a quickfix window doesn't seem like the right solution, since it
works quite differently. You can most likely use buffer-local mappings.
E.g. to handle a mouse click or pressing Enter on a certain line
(relating to a certain frame). Proabaly using 'buftype' "nofile".
Sending the frame command to gdb should then result in Vim displaying
the code there. That should already work.
…--
To be rich is not the end, but only a change of worries.
/// Bram Moolenaar -- ***@***.*** -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|
"possible in general" != possible for me, yet; I hope you can then add the buffer-local mappings (the features will be in as functions already) and, if I haven't done that already marking of the current frame. |
A new window for showing the current frames and highlight (similar to the assembler window) the current place would be nice :-) Likely more often used than the assembly window (which is definitely cool to have, too).
I assume that this would share much of the dissasembly code but using
backtrace
command instead ofdissasembly
.The text was updated successfully, but these errors were encountered: