 
 (defun rdebug-process-sentinel (process event)
   "Restore the original window configuration when the debugger process exits."
+  (gud-sentinel process event)
   (rdebug-debug-enter "rdebug-process-sentinel"
     (rdebug-debug-message "status=%S event=%S state=%S\n"
                           (process-status process)

  "Major mode for rdebug variables.

\\{rdebug-variables-mode-map}"
  ; (kill-all-local-variables)
  (interactive "")
  (kill-all-local-variables)
  (setq major-mode 'rdebug-variables-mode)

    (define-key menu [quit] '("Quit"   . rdebug-delete-frame-or-window))
    (define-key menu [goto] '("Goto"   . rdebug-goto-breakpoint))
    (define-key menu [delete] '("Delete" . rdebug-delete-breakpoint))
    (define-key menu [toggle] '("Toggle" . rdebug-toggle-breakpoint))
    (define-key map [mouse-2] 'rdebug-goto-breakpoint-mouse)
    (define-key map " " 'rdebug-toggle-breakpoint)
    (define-key map [? ] 'rdebug-toggle-breakpoint)
    (define-key map [(control m)] 'rdebug-goto-breakpoint)
    (define-key map [?d] 'rdebug-delete-breakpoint)
    map)
