[xdebug-dev] xdebug xdebug/xdebug.c - MFH: Fixed bug #403: 'call' and 'return' breakpoints triggers both on call

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sat, 28 Mar 2009 20:22:43 +0100

Date: Sat Mar 28 20:22:43 CET 2009
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- MFH: Fixed bug #403: 'call' and 'return' breakpoints triggers both on call
  and return for class method breakpoints.

Modified files:
           xdebug/xdebug.c (version: 1.400.2.20)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.400.2.19
retrieving revision 1.400.2.20
diff -u -r1.400.2.19 -r1.400.2.20
--- xdebug/xdebug.c:1.400.2.19 Fri Dec 26 11:02:29 2008 GMT
+++ xdebug/xdebug.c Sat Mar 28 18:22:43 2009 GMT
@@ -1353,7 +1353,7 @@
                 if (xdebug_hash_find(XG(context).class_breakpoints, tmp_name, strlen(tmp_name), (void *) &extra_brk_info)) {
                         /* Yup, breakpoint found, call handler if the breakpoint is not
                          * disabled AND handle_hit_value is happy */
- if (!extra_brk_info->disabled) {
+ if (!extra_brk_info->disabled && (extra_brk_info->function_break_type == breakpoint_type)) {
                                 if (handle_hit_value(extra_brk_info)) {
                                         XG(context).do_break = 1;
                                 }
Received on Sat Mar 28 2009 - 20:22:49 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST