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.
Originally CR 6904976: To aid in OpenMP program development, it would be useful if the IDE would highlight OpenMP directives and runtime routine calls when displaying an OpenMP program. The OpenMP 3.0 Specification can be found here: http://www.openmp.org/mp-documents/spec30.pdf All the OpenMP directives and runtime routines are listed in the Specification. Here's what happens today if I try to debug an OpenMP program using the IDE. Fortran: -------- See attached test.f for an example test case. Compile test case as follows: % f90 -xopenmp=noopt -g test.f and debug executable using sunstudio IDE. (a) When the program is displayed, an OpenMP directive (identified by the sentinel !$OMP or C$OMP) is considered a comment, and is displayed in grey. It would be useful if the full OpenMP directive (including all the clauses) is highlighted in some color. (b) Calls to OpenMP runtime routines (for example, omp_get_num_threads()) are not highlighted and are not distinguished from any other routine calls. C/C++: ------ See attached task_0111.c for an example test case. Compile test case as follows: % cc -xopenmp=noopt -g task_0111.c or % CC -xopenmp=noopt -g task_0111.c and debug executable using sunstudio IDE. (a) When displaying an OpenMP directive (identified by the sentinel "#pragma omp"), only the "#pragma" keyword is highlighted in green. It would be useful if the full OpenMP directive (including all the clauses) is highlighted in some color. (b) Calls to OpenMP runtime routines (for example, omp_get_num_threads()) are not highlighted and are not distinguished from any other routine calls. *** (#1 of 1): 2009-11-25 16:15:34 PST nawal