This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 140989 [details] Current call graph rendering when using function pointers A snipet of the current support of the call graph. No function poiinters even show up.
Created attachment 140990 [details] A picture showing a possible solution a proposed option of showing the function pointer within a call graph.
Description: Function pointers are currently ignored in call graph generation. void myFunction(void); void (*const myFunctionPointer)(void) = &myFunction; void main(void) { myFunctionPointer(); } void myFunction(void) { while(1); } The generated call graph for the above code is shown in CallGraph-Current.png. The pointer execution is ignored. Pointers are dynamic, and it may not be possible to show the actual function being called. However, a more accurate graph can be generated by showing the execution of the pointer as shown in CallGraph-Requested.png. A dotted line surrounds the function pointer name to differentiate it from a normal function call. A different icon could also be used in the call tree.
fixed, change set: http://hg.netbeans.org/cnd-main/rev/cbac04795d79