Variable: gdb-stopped-functions

gdb-stopped-functions is a customizable variable defined in gdb-mi.el.gz.

Value

nil

Documentation

List of functions called whenever GDB stops.

Each function takes one argument, a parsed MI response, which contains fields of corresponding MI *stopped async record:

    ((stopped-threads . "all")
     (thread-id . "1")
     (frame (line . "38")
            (fullname . "/home/sphinx/projects/gsoc/server.c")
            (file . "server.c")
            (args ((value . "0x804b038")
                   (name . "arg")))
            (func . "hello")
            (addr . "0x0804869e"))
     (reason . "end-stepping-range"))

Note that "reason" is only present in non-stop debugging mode.

Each function is called after the new current thread was selected and GDB buffers were updated in gdb-stopped.

This variable was added, or its default value changed, in Emacs 23.2.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defcustom gdb-stopped-functions nil
  "List of functions called whenever GDB stops.

Each function takes one argument, a parsed MI response, which
contains fields of corresponding MI *stopped async record:

    ((stopped-threads . \"all\")
     (thread-id . \"1\")
     (frame (line . \"38\")
            (fullname . \"/home/sphinx/projects/gsoc/server.c\")
            (file . \"server.c\")
            (args ((value . \"0x804b038\")
                   (name . \"arg\")))
            (func . \"hello\")
            (addr . \"0x0804869e\"))
     (reason . \"end-stepping-range\"))

Note that \"reason\" is only present in non-stop debugging mode.

Each function is called after the new current thread was selected
and GDB buffers were updated in `gdb-stopped'."
  :type '(repeat function)
  :group 'gdb
  :version "23.2"
  :link '(info-link "(gdb)GDB/MI Async Records"))