15knots / cmake4eclipse

Let Eclipse use CMake to generate the buildscripts for Eclipse CDT
Eclipse Public License 2.0
85 stars 25 forks source link

Gprof and Gcov profilers don't work for cmake4eclipse-driven projects #206

Open akamensh opened 2 weeks ago

akamensh commented 2 weeks ago

Describe the bug Gprof and Gcov profilers don't work for cmake4eclipse-driven projects - see the attached screenshots.

To Reproduce Steps to reproduce the behaviour:

  1. Open a cmake4eclipse-driven project or create any simple one.
  2. Set any working "Launch Configuration"; when editing the configuration, choose Gprof or Gcov on the "Profiler" tab.
  3. Set a "Launch Mode" to "Profile" and launch.
  4. See error.

Expected behaviour Gprof and Gcov profilers should be launching when requested by user, on "Launch in 'Profile' mode" control in Eclipse"

Screenshots These are for the case of Gcov - they are almost the same for a case of Gprof: Screenshot from 2024-09-26 23-24-10 Screenshot from 2024-09-26 23-24-27 Screenshot from 2024-09-26 23-24-47

Useful Information

What is in Eclipse's Error Log? See the errors in the attached screenshots.

Additional context Setting the compiler/linker flags for gprof/gcov in CMakeLists.txt or in "Cmake4eclipse Build"/"CMake Options" window of the Project's Properties doesn't solve the problem.

15knots commented 2 weeks ago

Describe the bug Gprof and Gcov profilers don't work for cmake4eclipse-driven projects - see the attached screenshots.

To Reproduce Steps to reproduce the behaviour:

1. Open a cmake4eclipse-driven project or create any simple one.

2. Set any working "Launch Configuration"; when editing the configuration, choose Gprof or Gcov on the "Profiler" tab.

Sorry, I do not see any "Launch Configuration" tab or similar in the project's settings. Can you provide a screenshot?

akamensh commented 2 weeks ago

I mean controls in the workspace window:

Screenshot from 2024-09-29 20-22-48 Screenshot from 2024-09-29 20-25-15