comparison lisp/ChangeLog @ 104151:22070e4cdf2a

* 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.
author Dmitry Dzhus <dima@sphinx.net.ru>
date Tue, 04 Aug 2009 15:07:23 +0000
parents 925e1efc6761
children 0727b216c5bf
comparison
equal deleted inserted replaced
104150:925e1efc6761 104151:22070e4cdf2a
1 2009-08-04 Dmitry Dzhus <dima@sphinx.net.ru> 1 2009-08-04 Dmitry Dzhus <dima@sphinx.net.ru>
2 2
3 * progmodes/gdb-mi.el Basic thread selection support. 3 * progmodes/gud.el (gud-stop-subjob, gud-menu-map): Respect GDB
4 (gdb-thread-number): New variable. 4 non-stop settings.
5 (gdb-current-context-command): New macro which adds --thread 5
6 option to command. 6 * progmodes/gdb-mi.el (gdb-thread-number): Initialize with nil.
7 (gdb-threads-mode-map): Select thread with SPC 7 (gdb-current-context-command): Do not append --thread if
8 (gdb-thread-list-handler-custom): Mark current thread with overlay 8 `gdb-thread-number' is nil.
9 arrow. Synchronize GDB thread and Emacs thread. 9 (gdb-running-threads-count, gdb-stopped-threads-count): New
10 (gdb-select-thread): New command which selects current thread. 10 variables.
11 (gdb-invalidate-frames, gdb-invalidate-locals) 11 (gdb-non-stop, gdb-gud-control-all-threads, gdb-switch-reasons)
12 (gdb-invalidate-registers): Use --thread option. 12 (gdb-stopped-hooks, gdb-switch-when-another-stopped): New
13 (gdb-breakpoints-buffer-name,gdb-locals-buffer-name) 13 customization options.
14 (gdb-registers-buffer-name) 14 (gdb-gud-context-command, gdb-gud-context-call): New wrappers for
15 (gdb-memory-buffer-name, gdb-stack-buffer-name): Do not switch 15 GUD commands.
16 to (gud-comint-buffer) in *-buffer-name functions 16 (gdb): `gud-def' definitions changed to use `gdb-gud-context-call'
17 because (gdb-get-target-string) already does that. 17 (gdb-init-1): Activate non-stop mode if `gdb-non-stop' is enabled.
18 (gdb-locals-handler-custom, gdb-registers-handler-custom) 18 (gdb-setq-thread-number, gdb-update-gud-running): New functions to
19 (gdb-changed-registers-handler): Rewritten without regexps. 19 set `gdb-thread-number' and update `gud-running' properly.
20 (gdb-get-buffer, gdb-get-buffer-create, gdb-init-1) 20 (gdb-running): Update threads list when new threads appear.
21 (gdb-bind-function-to-buffer, gdb-add-subscriber) 21 (gdb-stopped): Support non-stop operation and new thread switching
22 logic.
23 (gdb-jsonify-buffer, gdb-json-read-buffer, gdb-json-string)
24 (gdb-json-partial-output): New set of JSON routines.
25 (def-gdb-auto-update-trigger): New `signal-list' optional
26 argument.
27 (gdb-thread-list-handler-custom): Update `gud-running',
28 `gdb-stopped-threads-count' and `gdb-running-threads-count'.
29 (def-gdb-thread-buffer-gdb-command, gdb-interrupt-thread)
30 (gdb-continue-thread, gdb-step-thread): New commands for fine
31 thread execution control.
32 (gud-menu-map): New menu items to switch non-stop options.
33 (gdb-reset): Cleanup `gdb-thread-position' overlay arrow marker.
34
35 * progmodes/gdb-mi.el (gdb-rules-name-maker)
36 (gdb-rules-buffer-mode, gdb-rules-update-trigger): Accessors for
37 gdb-buffer-rules.
38 (def-gdb-auto-update-handler): New nopreserve optional argument.
39 (gdb-stack-list-frames-custom): Print stack from top to bottom.
40
41 * progmodes/gdb-mi.el (gdb-pc-address): Removed unused variable.
42 (gdb-threads-list, gdb-breakpoints-list): New assoc lists.
43 (gdb-parent-mode): New mode to derive other GDB modes from.
44 (gdb-display-disassembly-for-thread)
45 (gdb-frame-disassembly-for-thread): New commands for threads
46 buffer.
47
48 * progmodes/gdb-mi.el (gdb-get-buffer, gdb-get-buffer-create)
49 (gdb-init-1, gdb-bind-function-to-buffer, gdb-add-subscriber)
22 (gdb-get-subscribers, gdb-emit-signal, gdb-buf-publisher) 50 (gdb-get-subscribers, gdb-emit-signal, gdb-buf-publisher)
23 (gdb-update): We now store all GDB buffers in a list so that they 51 (gdb-update): We now store all GDB buffers in a list so that they
24 can be updated by traversing a list instead of calling invalidate 52 can be updated by traversing a list instead of calling invalidate
25 triggers explicitly 53 triggers explicitly
26 (def-gdb-trigger-and-handler): New macro to define trigger-handler 54 (def-gdb-trigger-and-handler): New macro to define trigger-handler
33 (gdb-display-stack-for-thread, gdb-display-locals-for-thread) 61 (gdb-display-stack-for-thread, gdb-display-locals-for-thread)
34 (gdb-display-registers-for-thread, gdb-frame-stack-for-thread) 62 (gdb-display-registers-for-thread, gdb-frame-stack-for-thread)
35 (gdb-frame-locals-for-thread, gdb-frame-registers-for-thread): New 63 (gdb-frame-locals-for-thread, gdb-frame-registers-for-thread): New
36 commands which show buffers bound to thread. 64 commands which show buffers bound to thread.
37 (gdb-stack-list-locals-regexp): Removed unused regexp. 65 (gdb-stack-list-locals-regexp): Removed unused regexp.
38 (gdb-pc-address): Removed unused variable. 66
39 (gdb-threads-list, gdb-breakpoints-list): New assoc lists. 67 * progmodes/gdb-mi.el (gdb-breakpoints-buffer-name,gdb-locals-buffer-name)
40 (gdb-parent-mode): New mode to derive other GDB modes from. 68 (gdb-registers-buffer-name)
41 (gdb-display-disassembly-for-thread) 69 (gdb-memory-buffer-name, gdb-stack-buffer-name): Do not switch
42 (gdb-frame-disassembly-for-thread): New commands for threads 70 to (gud-comint-buffer) in *-buffer-name functions
43 buffer. 71 because (gdb-get-target-string) already does that.
44 (gdb-rules-name-maker, gdb-rules-buffer-mode) 72 (gdb-locals-handler-custom, gdb-registers-handler-custom)
45 (gdb-rules-update-trigger): Accessors for gdb-buffer-rules. 73 (gdb-changed-registers-handler): Rewritten without regexps.
46 (def-gdb-auto-update-handler): New nopreserve optional argument. 74
47 (gdb-stack-list-frames-custom): Print stack from top to bottom. 75 * progmodes/gdb-mi.el Basic thread selection support.
76 (gdb-thread-number): New variable.
77 (gdb-current-context-command): New macro which adds --thread
78 option to command.
79 (gdb-threads-mode-map): Select thread with SPC
80 (gdb-thread-list-handler-custom): Mark current thread with overlay
81 arrow. Synchronize GDB thread and Emacs thread.
82 (gdb-select-thread): New command which selects current thread.
83 (gdb-invalidate-frames, gdb-invalidate-locals)
84 (gdb-invalidate-registers): Use --thread option.
48 85
49 2009-08-04 Michael Albinus <michael.albinus@gmx.de> 86 2009-08-04 Michael Albinus <michael.albinus@gmx.de>
50 87
51 * net/tramp.el (top): Make check for tramp-gvfs loading more 88 * net/tramp.el (top): Make check for tramp-gvfs loading more
52 robust. 89 robust.