Bug 237958 - [Scanner Discovery] pwd in compiler command not analyzed correctly
Summary: [Scanner Discovery] pwd in compiler command not analyzed correctly
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 4.0.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 5.0.1   Edit
Assignee: Markus Schorn CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-06-20 12:28 EDT by Gerhard Schaber CLA
Modified: 2008-07-14 12:07 EDT (History)
2 users (show)

See Also:


Attachments
Patch for per file discovery in CDT 4.0 (1.28 KB, patch)
2008-06-20 12:28 EDT, Gerhard Schaber CLA
no flags Details | Diff
Patch for per file discovery in CDT 5.0 (11.32 KB, patch)
2008-06-20 12:29 EDT, Gerhard Schaber CLA
no flags Details | Diff
Patch for per file discovery in CDT 5.0 (1.28 KB, patch)
2008-06-25 09:59 EDT, Gerhard Schaber CLA
mschorn.eclipse: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Schaber CLA 2008-06-20 12:28:25 EDT
Created attachment 105508 [details]
Patch for per file discovery in CDT 4.0

Build ID: I20080502-0100

Steps To Reproduce:
1. Create a standard make file project
2. Select per file scanner info profile
3. Build the project

If a compiler command has a `pwd` in the source file path, then the whole line is ignored, because the path is not resolved correctly.

gcc -c "`pwd`/parser_str.c" ...

pwd should be replaced by the current working directory.


More information:
Comment 1 Gerhard Schaber CLA 2008-06-20 12:29:00 EDT
Created attachment 105509 [details]
Patch for per file discovery in CDT 5.0
Comment 2 Markus Schorn CLA 2008-06-25 09:55:08 EDT
Comment on attachment 105509 [details]
Patch for per file discovery in CDT 5.0

patch seems to do something totally different.
Comment 3 Gerhard Schaber CLA 2008-06-25 09:59:38 EDT
Created attachment 105808 [details]
Patch for per file discovery in CDT 5.0
Comment 4 Markus Schorn CLA 2008-06-25 10:19:51 EDT
Fixed 5.0.1 > 20080625.

Applied patch to 4.0.x, also.
Comment 5 Markus Schorn CLA 2008-07-14 08:27:55 EDT
The patch does not solve the problem.
Comment 6 Markus Schorn CLA 2008-07-14 12:07:03 EDT
Created GCCPerFileBOPConsoleParserTests.testPwdInFilePath_Bug237958(),
fixed 5.0.1 > 20080714.

Applied fix to 4.0.x, also.