diff options
| author | Jean-Philippe Gravel | 2013-05-12 09:38:42 -0400 |
|---|---|---|
| committer | Jean-Philippe Gravel | 2013-05-12 09:38:42 -0400 |
| commit | d04ce803e5434854b6c4601e413bd8e79da00569 (patch) | |
| tree | d93675400dd9d223be5735914d4e27350edf47b9 | |
| parent | 0114073ac0fbb12765206eea6db8aab0a2982d25 (diff) | |
| download | emacs-d04ce803e5434854b6c4601e413bd8e79da00569.tar.gz emacs-d04ce803e5434854b6c4601e413bd8e79da00569.zip | |
* progmodes/gdb-mi.el (gdb-input): Include token numbers in
gdb-debug-log.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/gdb-mi.el | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ef43f00de1c..1007517d29a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-05-14 Jean-Philippe Gravel <jpgravel@gmail.com> | ||
| 2 | |||
| 3 | * progmodes/gdb-mi.el (gdb-input): Include token numbers in | ||
| 4 | gdb-debug-log. | ||
| 5 | |||
| 1 | 2013-05-14 Glenn Morris <rgm@gnu.org> | 6 | 2013-05-14 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * subr.el (user-emacs-directory-warning): New option. | 8 | * subr.el (user-emacs-directory-warning): New option. |
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index 8e15ec6584e..43eab07fb8d 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el | |||
| @@ -1731,10 +1731,11 @@ All embedded quotes, newlines, and backslashes are preceded with a backslash." | |||
| 1731 | "Send COMMAND to GDB via the MI interface. | 1731 | "Send COMMAND to GDB via the MI interface. |
| 1732 | Run the function HANDLER-FUNCTION, with no arguments, once the command is | 1732 | Run the function HANDLER-FUNCTION, with no arguments, once the command is |
| 1733 | complete." | 1733 | complete." |
| 1734 | (if gdb-enable-debug (push (list 'send-item command handler-function) | ||
| 1735 | gdb-debug-log)) | ||
| 1736 | (setq gdb-token-number (1+ gdb-token-number)) | 1734 | (setq gdb-token-number (1+ gdb-token-number)) |
| 1737 | (setq command (concat (number-to-string gdb-token-number) command)) | 1735 | (setq command (concat (number-to-string gdb-token-number) command)) |
| 1736 | |||
| 1737 | (if gdb-enable-debug (push (list 'send-item command handler-function) | ||
| 1738 | gdb-debug-log)) | ||
| 1738 | (push (cons gdb-token-number handler-function) gdb-handler-alist) | 1739 | (push (cons gdb-token-number handler-function) gdb-handler-alist) |
| 1739 | (if gdbmi-debug-mode (message "gdb-input: %s" command)) | 1740 | (if gdbmi-debug-mode (message "gdb-input: %s" command)) |
| 1740 | (process-send-string (get-buffer-process gud-comint-buffer) | 1741 | (process-send-string (get-buffer-process gud-comint-buffer) |