 
       (run-hooks 'rdebug-mode-hook))))
 
+
+(defun rdebug-restart ()
+  "Restart the debugged Ruby script.
+
+An exec restart is used."
+  (interactive)
+  (if (yes-or-no-p "Restart? ")
+      (gud-call "restart")))
 
 (defun rdebug-quit ()
   "Kill the debugger process associated with the current buffer.

  ;;(define-key map []  'gud-cont)
  ;;(define-key map []  'rdebug-quit)
  (define-key map [S-C-b] 'rdebug-toggle-source-breakpoint)
  (define-key map [f6]    'gud-next)
  (define-key map [f5]    'gud-step)
  (define-key map [f7]    'gud-finish))



  ;;(define-key map []  'rdebug-quit)
  ;; F4 - Run to cursor.
  (define-key map [S-f8]   'rdebug-toggle-source-breakpoint)
  (define-key map [f8]     'rdebug-next)
  (define-key map [f7]     'rdebug-step)
  (define-key map [M-S-f7] 'gud-finish))


