]> git.eshelyaron.com Git - emacs.git/commit
* progmodes/gud.el (gud-stop-subjob, gud-menu-map): Respect GDB
authorDmitry Dzhus <dima@sphinx.net.ru>
Tue, 4 Aug 2009 15:07:23 +0000 (15:07 +0000)
committerDmitry Dzhus <dima@sphinx.net.ru>
Tue, 4 Aug 2009 15:07:23 +0000 (15:07 +0000)
commit4a31122c337fbc0c6242e624d9e26eb13b9cd5e0
tree77fbb6982dab49ea54137c8d82719d2308e1a0f1
parent4a6bcbc60243f18091b676b25cdff253515e0baa
* progmodes/gud.el (gud-stop-subjob, gud-menu-map): Respect GDB
non-stop settings.

* progmodes/gdb-mi.el (gdb-thread-number): Initialize with nil.
(gdb-current-context-command): Do not append --thread if
`gdb-thread-number' is nil.
(gdb-running-threads-count, gdb-stopped-threads-count): New
variables.
(gdb-non-stop, gdb-gud-control-all-threads, gdb-switch-reasons)
(gdb-stopped-hooks, gdb-switch-when-another-stopped): New
customization options.
(gdb-gud-context-command, gdb-gud-context-call): New wrappers for
GUD commands.
(gdb): `gud-def' definitions changed to use `gdb-gud-context-call'
(gdb-init-1): Activate non-stop mode if `gdb-non-stop' is enabled.
(gdb-setq-thread-number, gdb-update-gud-running): New functions to
set `gdb-thread-number' and update `gud-running' properly.
(gdb-running): Update threads list when new threads appear.
(gdb-stopped): Support non-stop operation and new thread switching
logic.
(gdb-jsonify-buffer, gdb-json-read-buffer, gdb-json-string)
(gdb-json-partial-output): New set of JSON routines.
(def-gdb-auto-update-trigger): New `signal-list' optional
argument.
(gdb-thread-list-handler-custom): Update `gud-running',
`gdb-stopped-threads-count' and `gdb-running-threads-count'.
(def-gdb-thread-buffer-gdb-command, gdb-interrupt-thread)
(gdb-continue-thread, gdb-step-thread): New commands for fine
thread execution control.
(gud-menu-map): New menu items to switch non-stop options.
(gdb-reset): Cleanup `gdb-thread-position' overlay arrow marker.
lisp/ChangeLog
lisp/progmodes/gdb-mi.el
lisp/progmodes/gud.el