summaryrefslogtreecommitdiff
path: root/phpdbg_bp.c
diff options
context:
space:
mode:
authorkrakjoe <joe.watkins@live.co.uk>2013-11-25 18:03:38 +0000
committerkrakjoe <joe.watkins@live.co.uk>2013-11-25 18:03:38 +0000
commit3e14ff7cee168c6915883ed5fdd81c1d7f5fa5e7 (patch)
treee1679b8414c7739fd5ddad81b132ae4e29fa24c9 /phpdbg_bp.c
parent7ac64cdf46bc70a14dd9fabaa663ecae41e93322 (diff)
downloadphp-git-3e14ff7cee168c6915883ed5fdd81c1d7f5fa5e7.tar.gz
symbol breakpoint export
Diffstat (limited to 'phpdbg_bp.c')
-rw-r--r--phpdbg_bp.c15
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 */
} /* }}} */