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

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Wed, 30 Dec 2009 12:48:47 +0000

derick Wed, 30 Dec 2009 12:48:47 +0000

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

Log:
- Fixed bug #393: eval returns array data at the previous page request.
- Added the -p argument to the eval command as well, pending inclusion into
  DBGP.

Changed paths:
    U xdebug/trunk/xdebug_handler_dbgp.c

Modified: xdebug/trunk/xdebug_handler_dbgp.c
===================================================================
--- xdebug/trunk/xdebug_handler_dbgp.c 2009-12-29 21:28:30 UTC (rev 3180)
+++ xdebug/trunk/xdebug_handler_dbgp.c 2009-12-30 12:48:47 UTC (rev 3181)
@@ -1194,6 +1194,12 @@

         options = (xdebug_var_export_options*) context->options;

+ if (CMD_OPTION('p')) {
+ options->runtime[0].page = strtol(CMD_OPTION('p'), NULL, 10);
+ } else {
+ options->runtime[0].page = 0;
+ }
+
         /* base64 decode eval string */
         eval_string = (char*) xdebug_base64_decode((unsigned char*) CMD_OPTION('-'), strlen(CMD_OPTION('-')), &new_length);
Received on Wed Dec 30 2009 - 12:48:47 GMT

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