Fixed comment.


-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
### Eclipse Workspace Patch 1.0
#P ecos
Index: services/profile/gprof/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/services/profile/gprof/current/ChangeLog,v
retrieving revision 1.10
diff -u -r1.10 ChangeLog
--- services/profile/gprof/current/ChangeLog    18 Aug 2008 13:34:29 -0000      
1.10
+++ services/profile/gprof/current/ChangeLog    30 Oct 2008 14:50:47 -0000
@@ -1,3 +1,8 @@
+2007-10-14  Oyvind Harboe  <[EMAIL PROTECTED]>
+
+       * src/profile.c: do not relaunch tftpd thread upon second invocation
+       of profile_on
+
 2008-08-18  Bart Veer  <[EMAIL PROTECTED]>
 
        * host/Makefile.am: update host-side configury
Index: services/profile/gprof/current/src/profile.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/services/profile/gprof/current/src/profile.c,v
retrieving revision 1.6
diff -u -r1.6 profile.c
--- services/profile/gprof/current/src/profile.c        21 Dec 2007 16:47:15 
-0000      1.6
+++ services/profile/gprof/current/src/profile.c        30 Oct 2008 14:50:47 
-0000
@@ -577,11 +577,16 @@
 
     profile_enabled = 1;
 
-#ifdef CYGPKG_PROFILE_TFTP    
-    // Create a TFTP server to provide the data
-    // invoking this a second time is harmless
-    (void) tftpd_start(CYGNUM_PROFILE_TFTP_PORT, &profile_tftp_fileops);
-#endif    
+#ifdef CYGPKG_PROFILE_TFTP
+    static int launched = 0;
+    if (!launched)
+    {
+       launched = 1;
+           // Create a TFTP server to provide the data the first time we
+       // start profiling.
+           (void) tftpd_start(CYGNUM_PROFILE_TFTP_PORT, &profile_tftp_fileops);
+    }
+#endif
 }
 
 // EOF profile.c

Reply via email to