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.
Scenario: - Add some Solaris remote host - Create CppApplication project with main.cpp file - Select Solaris remote host - Select "Dtrace" profiler - Add such code: #include <cstdlib> #include <unistd.h> #include <cstdio> using namespace std; int f(unsigned long n) { for (int i = 2; i <= n / 2; i++) { if ((n % i) == 0) { printf("%d\n", i); return i; } } return 1; } int main(int argc, char** argv) { f(2147483647); return 0; } - Build and run - Press on "Hot Spots..." button - Check "Go to Source" for 'f' and 'main' ==> ok - Add 2-3 empty lines before "int f()" - run again - Press on "Hot Spots..." button again - Check "Go to Source" for 'f' and 'main' ==> cursor jumps on old lines
I can reproduce this problem on local Solaris machine also.
Local scenario: - Create CppApplication project with main.cpp file - Select "Dtrace" profiler - Add such code: /* * File: main.cpp * Author: tester * * Created on October 11, 2010, 4:35 PM */ #include <cstdlib> #include <unistd.h> using namespace std; /* * */ int main(int argc, char** argv) { for (int i = 0; i < 10; i++) { sleep(1); } return 0; } - Build and run - Press on "Hot Spots..." button - Check "Go to Source" for 'main at main.cpp:17' ==> cursor jumps on 17th line - Delete all comments: #include <cstdlib> #include <unistd.h> using namespace std; int main(int argc, char** argv) { for (int i = 0; i < 10; i++) { sleep(1); } return 0; } - Rebuild and rerun project - Press on "Hot Spots..." button ==> I see 'main at main.cpp:17' line in table, but file contains 14 lines only
Created attachment 102351 [details] screenshot
Sasha, please use UNIQUE key to cache functions list for the executable.
fixed, change set: http://hg.netbeans.org/cnd-main/rev/bb58362b11df
Integrated into 'main-golden', will be available in build *201010150000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/bb58362b11df User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #189684 Cursor jumps on old lines (file is modified) if DTrace provider is selected