-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
Handle disassemble request #331
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Should be coming soon: vadimcn/codelldb#790. FWIW vscode-cpptools (MIEngine) already supports the DAP disassembly. I also requested some clarifications because the DAP spec for disassembly is baffling:
I did this as part of implementing disassembly and instruction breakpoints for vimspector, which turned out to be a ton of work and the UI is still not ideal. Useful when needed, mostly not needed. Hope this is useful info if/when you come to implement it :) |
Oh nice work. Thanks, this will be very helpful. |
the feat seems to be merged: vadimcn/codelldb#790 |
I was curious if this would be hard to do so I gave it a shot. disassembly_example.mp4It's missing highlighting and doesn't perfectly fit the frame but the POC works. Because one could make a case that the disassembly output is dependent on the size of the window, I ended up placing the request directly in nvim-dap-ui rather than in nvim-dap. I could have done it in nvim-dap to request it any time the stack changes or step-{in,out,over} but it seemed like that wasn't the best thing to do because you'd have to assume the size of the request. Or maybe it would have made more sense to just keep requesting more instructions until DisassembledInstruction's line value goes past the current source code line. I'm curious what people think makes more sense. From what I can see vimspector's https://github.com/puremourning/vimspector/blob/831530b85aad02f2c465047a21452409bfaaf784/python3/vimspector/disassembly.py#L243-L249 incorporates window height into the request which further made me think nvim-dap-ui was the better place. |
Iirc Vimspector requests about 2 pages of instructions above and below the viewport and modifies that when the window is scrolled. It took some trial and error to tune this. |
We would love to see this feature. |
@0xwaleed Check out rcarriga/nvim-dap-ui#309. Specifically |
Problem Statement
It would be great if one could see the disassembled code in a split window. Similarly to codelldb.
Ideas or possible solutions
No response
The text was updated successfully, but these errors were encountered: