From 3e14ff7cee168c6915883ed5fdd81c1d7f5fa5e7 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Mon, 25 Nov 2013 18:03:38 +0000 Subject: [PATCH] symbol breakpoint export --- phpdbg_bp.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 */ } /* }}} */ -- 2.40.0