Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321240

Summary: opcontrol --image=.. set invalid if external binary is chosen (using absolute path)
Product: z_Archived Reporter: Severin Gehwolf <sgehwolf>
Component: LinuxToolsAssignee: OProfile Inbox <linux.oprofile-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: kksebasti, sgehwolf
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Severin Gehwolf CLA 2010-07-29 11:35:06 EDT
The use case is a bit weird, but if I do the following:

1. Create an empty C++ project
2. Run => Profile Configurations
3. Create a new Oprofile run config
4. Set path where it says "C++ Application" ("Main" tab) to something like /path/to/some/external/binary/which/actually/exists
5. This gets according to .oprofile/daemonrc translated to /path/to/workspace/projectname//path/to/some/external/binary/which/actually/exists

Expected result:
Do not use project relative path in that case

Observed behaviour:
Uses path relative to project (although path starts with "/")

IMO this doesn't seem to be what one expects.

Thoughts?
Comment 1 Roland Grunberg CLA 2010-08-06 11:31:13 EDT
I found this from not long ago : BZ # 296228 . This should be fixed in 0.5.1 (and i can confirm it works at the very least, in trunk)
Comment 2 Roland Grunberg CLA 2011-08-19 12:48:03 EDT
Tested out this functionality with eclipse oprofile from the 0.8.0 update site and was able to profile a binary outside the workspace.
Comment 3 Andrew Overholt CLA 2011-08-19 16:04:15 EDT
Roland, please set the Target Milestone to something reasonable for when this was fixed.  If you can't figure it out, just leave it as --- :)  Thanks.