diff options
-rw-r--r-- | phpdbg_bp.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/phpdbg_bp.c b/phpdbg_bp.c index d04525526b..fb61cf8ab7 100644 --- a/phpdbg_bp.c +++ b/phpdbg_bp.c @@ -74,6 +74,21 @@ PHPDBG_API void phpdbg_export_breakpoints(FILE *handle TSRMLS_DC) /* {{{ */ } } + if (PHPDBG_G(flags) & PHPDBG_HAS_SYM_BP) { + phpdbg_breaksymbol_t *brake; + + table = &PHPDBG_G(bp)[PHPDBG_BREAK_SYM]; + + phpdbg_notice("Exporting symbol breakpoints (%d)", zend_hash_num_elements(table)); + + for (zend_hash_internal_pointer_reset_ex(table, &position); + zend_hash_get_current_data_ex(table, (void*) &brake, &position) == SUCCESS; + zend_hash_move_forward_ex(table, &position)) { + fprintf( + handle, "break %s\n", brake->symbol); + } + } + /* export other types here after resolving errors from source command */ } /* }}} */ |