Thanks Edin. This is very useful!

At 12:20 AM 2/25/2005 +0000, Edin Kadribasic wrote:
edink           Thu Feb 24 19:20:20 2005 EDT

  Modified files:
    /php-src/win32/build        Makefile config.w32
  Log:
  Added --enable-debug-pack which will create a zip file with *.pdb debug
  symbol files. Could be used to allow windows users to use free Microsoft
  debugging tools to generate useful backtraces.

  Debug tools can be found at:
  http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx

  CLAGS used described in:
  http://support.microsoft.com/default.aspx?scid=kb;en-us;291585

  Only tested on VC 6.0.


http://cvs.php.net/diff.php/php-src/win32/build/Makefile?r1=1.30&r2=1.31&ty=u Index: php-src/win32/build/Makefile diff -u php-src/win32/build/Makefile:1.30 php-src/win32/build/Makefile:1.31 --- php-src/win32/build/Makefile:1.30 Thu Feb 24 18:28:49 2005 +++ php-src/win32/build/Makefile Thu Feb 24 19:20:19 2005 @@ -14,7 +14,7 @@ # | Author: Wez Furlong <[EMAIL PROTECTED]> | # +----------------------------------------------------------------------+ # -# $Id: Makefile,v 1.30 2005/02/24 23:28:49 edink Exp $ +# $Id: Makefile,v 1.31 2005/02/25 00:20:19 edink Exp $ # This is the makefile template for the win32 build

CC="$(CL)"
@@ -107,6 +107,7 @@
-rmdir /s /q $(BUILD_DIR)\php-$(PHP_VERSION_STRING)
-rmdir /s /q $(BUILD_DIR)\pecl-$(PHP_VERSION_STRING)
-del /f /q $(BUILD_DIR)\php-$(PHP_VERSION_STRING)-Win32.zip
+ -del /f /q $(BUILD_DIR)\php-debug-pack-$(PHP_VERSION_STRING)-Win32.zip
-del /f /q $(BUILD_DIR)\pecl-$(PHP_VERSION_STRING)-Win32.zip
$(BUILD_DIR)\php.exe -n win32/build/mkdist.php "$(BUILD_DIR)" "$(PHPDLL)" "$(SAPI_TARGETS)" "$(EXT_TARGETS)" "$(PECL_TARGETS)" "$(SNAPSHOT_TEMPLATE)"
cd $(BUILD_DIR)\php-$(PHP_VERSION_STRING)
@@ -115,6 +116,9 @@
cd $(BUILD_DIR)\pecl-$(PHP_VERSION_STRING)
-$(ZIP) -9 -r ..\pecl-$(PHP_VERSION_STRING)-Win32.zip .
cd ..\..
+ cd $(BUILD_DIR)
+ -$(ZIP) -9 php-debug-pack-$(PHP_VERSION_STRING)-Win32.zip *.pdb
+ cd ..\..


dist: all build-dist
snap: build-snap build-dist
http://cvs.php.net/diff.php/php-src/win32/build/config.w32?r1=1.36&r2=1.37&ty=u
Index: php-src/win32/build/config.w32
diff -u php-src/win32/build/config.w32:1.36 php-src/win32/build/config.w32:1.37
--- php-src/win32/build/config.w32:1.36 Tue Feb 15 08:57:49 2005
+++ php-src/win32/build/config.w32 Thu Feb 24 19:20:19 2005
@@ -1,5 +1,5 @@
// vim:ft=javascript
-// $Id: config.w32,v 1.36 2005/02/15 13:57:49 edink Exp $
+// $Id: config.w32,v 1.37 2005/02/25 00:20:19 edink Exp $
// "Master" config file; think of it as a configure.in
// equivalent.


@@ -19,8 +19,11 @@
 PATH_PROG('mc', WshShell.Environment("Process").Item("PATH"));

ARG_ENABLE('debug', 'Compile with debugging symbols', "no");
+ARG_ENABLE('debug-pack', 'Release binaries with external debug symbols (--enable-debug must not be specified)', 'no');
+if (PHP_DEBUG == "yes" && PHP_DEBUG_PACK == "yes") {
+ ERROR("Use of both --enable-debug and --enable-debug-pack not allowed.");
+}
ARG_ENABLE('zts', 'Thread safety', 'yes');
-
// Configures the hard-coded installation dir
ARG_ENABLE('prefix', 'where PHP will be installed', '');
if (PHP_PREFIX == '') {
@@ -64,6 +67,11 @@
// version of the libc
ADD_FLAG("PHP_LDFLAGS", "/nodefaultlib:msvcrt");
} else {
+ // Generate external debug files when --enable-debug-pack is specified
+ if (PHP_DEBUG_PACK == "yes") {
+ ADD_FLAG("CFLAGS", "/Zi");
+ ADD_FLAG("LDFLAGS", "/incremental:no /debug /opt:ref,icf");
+ }
// Equivalent to Release_TSInline build -> best optimization
ADD_FLAG("CFLAGS", "/LD /MD /W3 /Ox /D NDebug /D NDEBUG \
/D ZEND_WIN32_FORCE_INLINE /GB /GF /D ZEND_DEBUG=0");


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to