   "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"
+    (rdebug-debug-message "status=%S event=%S state=%S"
                           (process-status process)
                           event
                           rdebug-window-configuration-state)

  (rdebug-debug-enter "rdebug-process-annotation"
  (let ((buf (get-buffer-create (format "*rdebug-%s-%s*" name gud-target-name)))
        ;; Buffer local, doesn't survive the buffer change.
        (target-name gud-target-name))
    (with-current-buffer buf
      (setq buffer-read-only t)
      (let ((inhibit-read-only t)
            (setup-func (gethash name rdebug--annotation-setup-map)))
        (erase-buffer)
        (insert contents)
        (when setup-func (funcall setup-func buf target-name)))))))

(defun rdebug-setup-windows ()
  "Layout the window pattern for `rdebug-many-windows'. This was mostly copied

(defun rdebug-display-secondary-buffer (name)
  "Display one of the rdebug secondary buffers.
If the buffer doesn't exist, do nothing."
  (let* ((target-name (or (and gud-comint-buffer
                               (buffer-local-value 'gud-target-name
                                                   gud-comint-buffer))
                          gud-target-name))
