--
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
Free eCos workshop in Oslo October 21!
http://www.zylin.com/workshop.html
### 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 14 Oct 2008 11:39:50 -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 14 Oct 2008 11:39:51
-0000
@@ -577,10 +577,15 @@
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);
+#ifdef CYGPKG_PROFILE_TFTP
+ static int launched = 0;
+ if (!launched)
+ {
+ launched = 1;
+ // 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
}