[xdebug-dev] svn: /xdebug/branches/xdebug_2_1/ xdebug_handler_dbgp.c

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Thu, 08 Jul 2010 08:11:32 +0000

derick Thu, 08 Jul 2010 08:11:32 +0000

Revision: http://svn.xdebug.org/cgi-bin/viewvc.cgi?view=rev&revision=3322&root=xdebug

Log:
- MFH: Fixed bug #592: Xdebug crashes with run after detach.

Changed paths:
    U xdebug/branches/xdebug_2_1/xdebug_handler_dbgp.c

Modified: xdebug/branches/xdebug_2_1/xdebug_handler_dbgp.c
===================================================================
--- xdebug/branches/xdebug_2_1/xdebug_handler_dbgp.c 2010-07-08 08:11:14 UTC (rev 3321)
+++ xdebug/branches/xdebug_2_1/xdebug_handler_dbgp.c 2010-07-08 08:11:32 UTC (rev 3322)
@@ -2463,15 +2463,17 @@
                 XG(stdio).php_header_write = NULL;
         }

- options = (xdebug_var_export_options*) context->options;
- xdfree(options->runtime);
- xdfree(context->options);
- xdebug_hash_destroy(context->function_breakpoints);
- xdebug_hash_destroy(context->exception_breakpoints);
- xdebug_hash_destroy(context->eval_id_lookup);
- xdebug_llist_destroy(context->line_breakpoints, NULL);
- xdebug_hash_destroy(context->breakpoint_list);
- xdfree(context->buffer);
+ if (XG(remote_enabled)) {
+ options = (xdebug_var_export_options*) context->options;
+ xdfree(options->runtime);
+ xdfree(context->options);
+ xdebug_hash_destroy(context->function_breakpoints);
+ xdebug_hash_destroy(context->exception_breakpoints);
+ xdebug_hash_destroy(context->eval_id_lookup);
+ xdebug_llist_destroy(context->line_breakpoints, NULL);
+ xdebug_hash_destroy(context->breakpoint_list);
+ xdfree(context->buffer);
+ }

         if (XG(remote_log_file)) {
                 char *timestr = xdebug_get_time();
@@ -2481,6 +2483,7 @@
                 fclose(XG(remote_log_file));
                 XG(remote_log_file) = NULL;
         }
+ XG(remote_enabled) = 0;
         return 1;
 }

Received on Thu Jul 08 2010 - 09:11:32 BST

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