Skip to content

Commit 632c89b

Browse files
committed
fix output from userland break point insertion
1 parent e8c9802 commit 632c89b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

phpdbg_bp.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,15 @@ void phpdbg_set_breakpoint_opline_ex(phpdbg_opline_ptr_t opline TSRMLS_DC) /* {{
111111

112112
PHPDBG_G(has_opline_bp) = 1;
113113

114-
asprintf((char**)&new_break.name, "%#x", opline);
114+
asprintf(
115+
(char**)&new_break.name, "%p", (zend_op*) opline);
115116

116-
new_break.opline = opline;
117+
new_break.opline = (zend_ulong) opline;
117118
new_break.id = PHPDBG_G(bp_count)++;
118119

119-
zend_hash_index_update(&PHPDBG_G(bp_oplines), opline, &new_break, sizeof(phpdbg_breakline_t), NULL);
120+
zend_hash_index_update(&PHPDBG_G(bp_oplines), (zend_ulong) opline, &new_break, sizeof(phpdbg_breakline_t), NULL);
120121

121-
printf("[Breakpoint #%d added at %#x]\n", new_break.id, new_break.opline);
122+
printf("[Breakpoint #%d added at %p]\n", new_break.id, (zend_op*) new_break.opline);
122123
}
123124
} /* }}} */
124125

0 commit comments

Comments
 (0)