            (rdebug-buffer (get-buffer rdebug-buffer-name)))
 
       ;; `gud-rdebug-massage-args' needs whole `command-line'.
-      ;; command-line is refered through dyanmic scope.
+      ;; command-line is refered through dynamic scope.
       (gud-common-init command-line 'gud-rdebug-massage-args
                        'gud-rdebug-marker-filter 'gud-rdebug-find-file)
 

  "Populate the Rdebug 'Debugger' menu."
  (let ((menu (make-sparse-keymap))
        (common-map (make-sparse-keymap)))
    ;; Use a simple common map to find the best key sequence to display in menu.
    (rdebug-populate-common-keys common-map)

    (define-key map [menu-bar debugger] (cons "Debugger" menu))

    (define-key menu [break-delete]
      (rdebug-menu-item common-map "Delete breakpoint" 'gud-remove))

    (define-key menu [break]
      (rdebug-menu-item common-map "Set breakpoint" 'gud-break))

    (define-key menu [finish] (rdebug-menu-item common-map "Step out" 'gud-finish))
    (define-key menu [step]   (rdebug-menu-item common-map "Step into" 'gud-step))
    (define-key menu [next]   (rdebug-menu-item common-map "Step over" 'gud-next))
    (define-key menu [cont]   (rdebug-menu-item common-map "Continue" 'gud-cont))
    (define-key menu [start]
      (rdebug-menu-item common-map "Start the debugger" 'rdebug))

    (define-key menu [placeholder] nil)

    ;; --------------------

          (set-process-sentinel process
                                'rdebug-process-sentinel)))


      ;; Add the buffer-displaying commands to the Gud buffer,
      (let ((prefix-map (make-sparse-keymap)))
