Function: def-gdb-memory-format

def-gdb-memory-format is a macro defined in gdb-mi.el.gz.

Signature

(def-gdb-memory-format NAME FORMAT DOC)

Documentation

Define a function NAME to switch memory buffer to use FORMAT.

DOC is an optional documentation string.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defmacro def-gdb-memory-format (name format doc)
  "Define a function NAME to switch memory buffer to use FORMAT.

DOC is an optional documentation string."
  (declare (indent defun))
  `(defun ,name () ,(when doc doc)
     (interactive)
     (customize-set-variable 'gdb-memory-format ,format)
     (gdb-invalidate-memory 'update)))