gpprofile2011 icon indicating copy to clipboard operation
gpprofile2011 copied to clipboard

It works incorrect with files with dots in the filename

Open GoogleCodeExporter opened this issue 11 years ago • 1 comments

What steps will reproduce the problem?
1. Create 2 files: Common.Items.pas and File.Items.pas
2. Open the project in the profiler.

What is the expected output? What do you see instead?
I expect to see "Common.Items" and "File.Items" files.
But I see only "Items" file.
Also both files can't be instrumented.

What version of the product are you using? On what operating system?
1.3.5, Win7 x64

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 1 Jan 2012 at 10:30

GoogleCodeExporter avatar Apr 09 '15 06:04 GoogleCodeExporter

Hello, this patch fixes this problem:

Index: gpParser.pas
===================================================================
--- gpParser.pas    (revision 21)
+++ gpParser.pas    (working copy)
@@ -892,7 +892,9 @@
                     unLocation := '';
                   end
                   else if tokenID = ptIdentifier then // unit name
-                    unName := tokenData
+                    unName := unName + tokenData
+                  else if tokenID = ptPoint then
+                    unName := unName + '.'
                   else if tokenID = ptStringConst then // unit location from "in 'somepath\someunit.pas'" (dpr-file)
                     unLocation := tokenData
                 end

Original comment by [email protected] on 6 Feb 2015 at 5:12

GoogleCodeExporter avatar Apr 09 '15 06:04 GoogleCodeExporter