/* initialize from file */
zend_try {
- phpdbg_init(init_file, init_file_len, init_file_default TSRMLS_CC);
+ PHPDBG_G(flags) |= PHPDBG_IS_INITIALIZING;
+ phpdbg_init(
+ init_file, init_file_len,
+ init_file_default TSRMLS_CC);
+ PHPDBG_G(flags) &= ~PHPDBG_IS_INITIALIZING;
} zend_catch {
+ PHPDBG_G(flags) &= ~PHPDBG_IS_INITIALIZING;
if (PHPDBG_G(flags) & PHPDBG_IS_QUITTING) {
goto phpdbg_out;
}
#define PHPDBG_IS_REGISTERED (1<<16)
#define PHPDBG_IS_STEPONEVAL (1<<17)
+#define PHPDBG_IS_INITIALIZING (1<<18)
#ifndef _WIN32
# define PHPDBG_DEFAULT_FLAGS (PHPDBG_IS_QUIET|PHPDBG_IS_COLOURED)
} while(!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING));\
} while(0)
- /* allow conditional breakpoints to access the vm uninterrupted */
- if (PHPDBG_G(flags) & PHPDBG_IN_COND_BP) {
+ /* allow conditional breakpoints and
+ initialization to access the vm uninterrupted */
+ if (PHPDBG_G(flags) & PHPDBG_IN_COND_BP|PHPDBG_IS_INITIALIZING) {
/* skip possible breakpoints */
goto next;
}