[xdebug-dev] xdebug xdebug/xdebug_profiler.c - Implemented FR #158: Function calls from the {main} scope always have the

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Fri, 30 Dec 2005 16:59:02 +0100

Date: Fri Dec 30 16:59:02 CET 2005
User: Derick Rethans
Directory: xdebug

Log Message:
[0.10]
- Implemented FR #158: Function calls from the {main} scope always have the
  line number 0. (Patch by Jan Jehnardt)

Modified files:
           xdebug/xdebug_profiler.c (version: 1.31)

[FILE: /xdebug/xdebug_profiler.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- xdebug/xdebug_profiler.c:1.30 Thu Sep 22 16:36:51 2005 GMT
+++ xdebug/xdebug_profiler.c Fri Dec 30 14:59:02 2005 GMT
@@ -66,7 +66,11 @@
                 fprintf(XG(profile_file), "\n==== NEW PROFILING FILE ==============================================\n");
         }
         XG(profile_filename) = estrdup(filename);
+#if MEMORY_LIMIT
         fprintf(XG(profile_file), "version: 0.9.6\ncmd: %s\npart: 1\n\nevents: Time Memory\n\n", script_name);
+#else
+ fprintf(XG(profile_file), "version: 0.9.6\ncmd: %s\npart: 1\n\nevents: Time\n\n", script_name);
+#endif
         fflush(XG(profile_file));
         return SUCCESS;
 }
@@ -130,6 +134,11 @@
                         xdfree(tmp_name);
                         tmp_name = tmp_fname;
                         default_lineno = 1;
+ break;
+
+ default:
+ default_lineno = fse->lineno;
+ break;
         }
 
         if (fse->prev) {
Received on Fri Dec 30 2005 - 16:59:03 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST