Community
Participate
Working Groups
Build Identifier: I20110613-1736 A preference to turn on/off the display of opcode values and the ability to display the value of registers via tool-tips are missing. Reproducible: Always
> A preference to turn on/off the display of opcode values By coincidence this has been requested recently in bug 357270. > and the ability to > display the value of registers via tool-tips are missing. This should already be possible by implementing IDisassemblyBackend.evaluateExpression(String() such that it can detect whether an expression denotes a register or simply by trying register evaluation as a fallback. /** * Evaluate an expression for text hover * * @param expression * the expression to be evaluated * @return the result, or "" if it doesn't resolve, for whatever reason */ String evaluateExpression(String expression);
(In reply to comment #1) > This should already be possible by implementing > IDisassemblyBackend.evaluateExpression(String() such that it can detect whether > an expression denotes a register or simply by trying register evaluation as a > fallback. > /** > * Evaluate an expression for text hover > * > * @param expression > * the expression to be evaluated > * @return the result, or "" if it doesn't resolve, for whatever reason > */ > String evaluateExpression(String expression); It would be nice if the disassembly view passed the selected text if there is any. Since this bug is requesting for tooltip support, is it possible to have tooltip support for instruction documentation? Our customers have been requesting to show a short discription when hovering the mouse over the instruction in the disassembly view.
Created attachment 203272 [details] Small patch to enable opcode ruler display and register tool-tips from backends.
I have split this bug into - the opcode ruler part (this bug) and - the register tooltip enhancement - bug 357612. Could you create patches for each feature separately? This should make it easier to review and discuss. Thanks!
Created attachment 203420 [details] Focused opcode ruler patch
Thanks, it's committed and pushed to master with a few changes: - fixed an NPE if a backend does not provide opcodes - moved the preference options for the opcode ruler - opcodes were not stored for disassembly lines with source info Currently the radix prefix is always displayed for opcodes. Maybe it would make sense to connect this to the existing "Force radix prefixes" preference.
*** cdt git genie on behalf of Scott Tepavich *** Bug 357440 - [disassembly] Add opcode ruler column to the disassembly view [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=6f21f0999c51ae247aef0f0979c9fd2a522946dc