gdb-stopped-functions

gdb-stopped-functions is a variable defined in `gdb-mi.el'.
Its value is
nil

  • This variable may be risky if used as a file-local variable.

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.

`bindat-get-field' may be used to access the fields of response.

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

You can customize this variable.

This variable was introduced, or its default value was changed, in version 23.2 of Emacs.