@@ -88,20 +88,20 @@ PHPDBG_API void phpdbg_export_breakpoints(FILE *handle TSRMLS_DC) /* {{{ */
88
88
handle , "break %s\n" , brake -> symbol );
89
89
}
90
90
}
91
-
91
+
92
92
if (PHPDBG_G (flags ) & PHPDBG_HAS_METHOD_BP ) {
93
93
HashTable * class ;
94
94
phpdbg_breakmethod_t * brake ;
95
95
HashPosition mposition ;
96
96
zend_bool noted = 0 ;
97
-
97
+
98
98
table = & PHPDBG_G (bp )[PHPDBG_BREAK_METHOD ];
99
-
99
+
100
100
for (zend_hash_internal_pointer_reset_ex (table , & position );
101
101
zend_hash_get_current_data_ex (table , (void * * ) & class , & position ) == SUCCESS ;
102
102
zend_hash_move_forward_ex (table , & position )) {
103
103
noted = 0 ;
104
-
104
+
105
105
for (zend_hash_internal_pointer_reset_ex (class , & mposition );
106
106
zend_hash_get_current_data_ex (class , (void * * ) & brake , & mposition ) == SUCCESS ;
107
107
zend_hash_move_forward_ex (class , & mposition )) {
@@ -118,6 +118,23 @@ PHPDBG_API void phpdbg_export_breakpoints(FILE *handle TSRMLS_DC) /* {{{ */
118
118
}
119
119
}
120
120
121
+ if (PHPDBG_G (flags ) & PHPDBG_HAS_OPCODE_BP ) {
122
+ phpdbg_breakop_t * brake ;
123
+
124
+ table = & PHPDBG_G (bp )[PHPDBG_BREAK_OPCODE ];
125
+
126
+ phpdbg_notice (
127
+ "Exporting opcode breakpoints (%d)" , zend_hash_num_elements (table ));
128
+
129
+ for (zend_hash_internal_pointer_reset_ex (table , & position );
130
+ zend_hash_get_current_data_ex (table , (void * * ) & brake , & position ) == SUCCESS ;
131
+ zend_hash_move_forward_ex (table , & position )) {
132
+
133
+ fprintf (
134
+ handle , "break op %s\n" , brake -> name );
135
+ }
136
+ }
137
+
121
138
/* export other types here after resolving errors from source command */
122
139
123
140
} /* }}} */
@@ -245,6 +262,8 @@ PHPDBG_API void phpdbg_set_breakpoint_opcode(const char *name, size_t name_len T
245
262
zend_ulong hash = zend_hash_func (name , name_len );
246
263
247
264
if (zend_hash_index_exists (& PHPDBG_G (bp )[PHPDBG_BREAK_OPCODE ], hash )) {
265
+ phpdbg_notice (
266
+ "Breakpoint exists for %s" , name );
248
267
return ;
249
268
}
250
269
0 commit comments