com php-src: fix output from userland break point insertion: phpdbg_bp.c
| From: | Bob Weinand | Date: | Mon, 11 Nov 2013 14:59:51 +0000 |
| Subject: | com php-src: fix output from userland break point insertion: phpdbg_bp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75131@lists.php.net to get a copy of this message | ||
Commit: 632c89b65aea9315b218ba766f092131d54f690b
Author: krakjoe <joe.watkins@live.co.uk> Mon, 11 Nov 2013 14:59:51 +0000
Parents: e8c98020efcd9534830758bc458f4189496b54fc
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=632c89b65aea9315b218ba766f092131d54f690b
Log:
fix output from userland break point insertion
Changed paths:
M phpdbg_bp.c
Diff:
diff --git a/phpdbg_bp.c b/phpdbg_bp.c
index e17608c..2bbb12f 100644
--- a/phpdbg_bp.c
+++ b/phpdbg_bp.c
@@ -111,14 +111,15 @@ void phpdbg_set_breakpoint_opline_ex(phpdbg_opline_ptr_t opline TSRMLS_DC) /*
{{
PHPDBG_G(has_opline_bp) = 1;
- asprintf((char**)&new_break..name, "%#x", opline);
+ asprintf(
+ (char**)&new_break.name, "%p", (zend_op*) opline);
- new_break.opline = opline;
+ new_break.opline = (zend_ulong) opline;
new_break.id = PHPDBG_G(bp_count)++;
- zend_hash_index_update(&PHPDBG_G(bp_oplines), opline, &new_break,
sizeof(phpdbg_breakline_t), NULL);
+ zend_hash_index_update(&PHPDBG_G(bp_oplines), (zend_ulong) opline, &new_break,
sizeof(phpdbg_breakline_t), NULL);
- printf("[Breakpoint #%d added at %#x]\n", new_break.id, new_break.opline);
+ printf("[Breakpoint #%d added at %p]\n", new_break.id, (zend_op*) new_break.opline);
}
} /* }}} */