[xdebug-dev] svn: /xdebug/trunk/ xdebug_handler_dbgp.c

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Tue, 05 Jan 2010 17:37:21 +0000

derick Tue, 05 Jan 2010 17:37:21 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=3205

Log:
- Fixed bug #512: DBGP: breakpoint_get doesn't return conditions in its
  response.

Changed paths:
    U xdebug/trunk/xdebug_handler_dbgp.c

Modified: xdebug/trunk/xdebug_handler_dbgp.c
===================================================================
--- xdebug/trunk/xdebug_handler_dbgp.c 2010-01-05 17:36:50 UTC (rev 3204)
+++ xdebug/trunk/xdebug_handler_dbgp.c 2010-01-05 17:37:21 UTC (rev 3205)
@@ -822,6 +822,11 @@
                         xdebug_xml_add_attribute(xml, "hit_condition", "%");
                         break;
         }
+ if (brk->condition) {
+ xdebug_xml_node *condition = xdebug_xml_node_init("expression");
+ xdebug_xml_add_text_ex(condition, brk->condition, strlen(brk->condition), 0, 1);
+ xdebug_xml_add_child(xml, condition);
+ }
         xdebug_xml_add_attribute_ex(xml, "hit_value", xdebug_sprintf("%lu", brk->hit_value), 0, 1);
 }
Received on Tue Jan 05 2010 - 17:37:22 GMT

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