zend_llist_add_element(break_sym_ptr, &new_break);
} /* }}} */
-int phpdbg_breakpoint_file(zend_op_array *op_array TSRMLS_DC) /* {{{ */
+int phpdbg_find_breakpoint_file(zend_op_array *op_array TSRMLS_DC) /* {{{ */
{
size_t name_len = strlen(op_array->filename);
zend_llist *break_list;
return FAILURE;
} /* }}} */
-int phpdbg_breakpoint_symbol(zend_function *fbc TSRMLS_DC) /* {{{ */
+int phpdbg_find_breakpoint_symbol(zend_function *fbc TSRMLS_DC) /* {{{ */
{
const char *fname;
zend_llist *break_list;
void phpdbg_set_breakpoint_file(const char*, const char* TSRMLS_DC);
void phpdbg_set_breakpoint_symbol(const char*, const char* TSRMLS_DC);
+int phpdbg_find_breakpoint_file(zend_op_array* TSRMLS_DC);
+int phpdbg_find_breakpoint_symbol(zend_function* TSRMLS_DC);
+
#endif /* PHPDBG_BP_H */
++help_command;
}
} else {
- if (phpdbg_do_cmd(phpdbg_help_commands, expr, expr_len TSRMLS_CC) == FAILURE) {
+ if (phpdbg_do_cmd(phpdbg_help_commands, (char*)expr, expr_len TSRMLS_CC) == FAILURE) {
printf("failed to find help command: %s\n", expr);
}
}
return SUCCESS;
} /* }}} */
-static void phpdbg_print_opline(zend_execute_data *execute_data TSRMLS_DC) { /* {{{ */
+static void phpdbg_print_opline(zend_execute_data *execute_data TSRMLS_DC) /* {{{ */
+{
zend_op *opline = execute_data->opline;
printf("[OPLINE: %p:%s]\n", opline, phpdbg_decode_opcode(opline->opcode));
phpdbg_print_opline(execute_data TSRMLS_CC);
if (PHPDBG_G(has_file_bp)
- && phpdbg_breakpoint_file(execute_data->op_array TSRMLS_CC) == SUCCESS) {
+ && phpdbg_find_breakpoint_file(execute_data->op_array TSRMLS_CC) == SUCCESS) {
while (phpdbg_interactive(0, NULL TSRMLS_CC) != PHPDBG_NEXT) {
continue;
}
if (PHPDBG_G(has_sym_bp)
&& (execute_data->opline->opcode == ZEND_DO_FCALL || execute_data->opline->opcode == ZEND_DO_FCALL_BY_NAME)
- && phpdbg_breakpoint_symbol(execute_data->function_state.function TSRMLS_CC) == SUCCESS) {
+ && phpdbg_find_breakpoint_symbol(execute_data->function_state.function TSRMLS_CC) == SUCCESS) {
while (phpdbg_interactive(0, NULL TSRMLS_CC) != PHPDBG_NEXT) {
continue;
}