Function: gdb-mi--fix-key

gdb-mi--fix-key is a byte-compiled function defined in gdb-mi.el.gz.

Signature

(gdb-mi--fix-key KEY VALUE)

Documentation

Convert any result (key-value pair) in VALUE whose key is KEY to its value.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-mi--fix-key (key value)
  "Convert any result (key-value pair) in VALUE whose key is KEY to its value."
  (cond
   ((atom value) value)
   ((symbolp (car value))
    (if (eq (car value) key)
        (cdr value)
      (cons (car value) (gdb-mi--fix-key key (cdr value)))))
   (t (mapcar (lambda (x) (gdb-mi--fix-key key x)) value))))