Community
Participate
Working Groups
From bug 293966 comment 1: #define GVMIN( x, y ) ( (x) < (y) ? (x) : (y) ) #define DBG(x) printf( "result is %f\n", x ); { float f1 = 2.0F; float f2 = 1.0F; float f3 = GVMIN(f1, f2); // hover f1 or f2: the expression is evaluated // 1.0F is shown DBG(f3) // hover f3: nothing is shown! } The expression hover should be improved such that - hovering over a macro argument evaluates the argument - hovering over a macro name evaluates the macro expansion (not all debuggers support that)
Created attachment 176206 [details] Solution
Committed to HEAD and cdt_7_0.
*** cdt cvs genie on behalf of aleherbau *** Bug 315185 - [hover] When hovering over a macro argument the expansion as a whole is evaluated [*] AbstractDebugTextHover.java 1.5.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/editors/AbstractDebugTextHover.java?root=Tools_Project&r1=1.5&r2=1.5.2.1 [*] AbstractDebugTextHover.java 1.6 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/editors/AbstractDebugTextHover.java?root=Tools_Project&r1=1.5&r2=1.6