[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el,v
From: |
Nick Roberts |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el,v |
Date: |
Fri, 23 May 2008 07:36:55 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Nick Roberts <nickrob> 08/05/23 07:36:55
Index: gdb-ui.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/progmodes/gdb-ui.el,v
retrieving revision 1.246
retrieving revision 1.247
diff -u -b -r1.246 -r1.247
--- gdb-ui.el 6 May 2008 07:18:25 -0000 1.246
+++ gdb-ui.el 23 May 2008 07:36:54 -0000 1.247
@@ -401,6 +401,21 @@
;; Force mode line redisplay soon.
(force-mode-line-update)))))
+(defun gdb-enable-debug (arg)
+ "Toggle logging of transaction between Emacs and Gdb.
+The log is stored in `gdb-debug-log' as an alist with elements
+whose cons is send, send-item or recv and whose cdr is the string
+being transferred. This list may grow up to a size of
+`gdb-debug-log-max' after which the oldest element (at the end of
+the list) is deleted every time a new one is added (at the front)."
+ (interactive "P")
+ (setq gdb-enable-debug
+ (if (null arg)
+ (not gdb-enable-debug)
+ (> (prefix-numeric-value arg) 0)))
+ (message (format "Logging of transaction %sabled"
+ (if gdb-enable-debug "en" "dis"))))
+
(defun gdb-many-windows (arg)
"Toggle the number of windows in the basic arrangement.
With prefix argument ARG, display additional buffers if ARG is positive,
@@ -1313,7 +1328,9 @@
("stopped" gdb-stopped)
("error-begin" gdb-error)
("error" gdb-error)
- ("new-thread" (lambda (ignored) (gdb-get-buffer-create
'gdb-threads-buffer))))
+ ("new-thread" (lambda (ignored)
+ (gdb-get-buffer-create 'gdb-threads-buffer)))
+ ("thread-changed" gdb-thread-changed))
"An assoc mapping annotation tags to functions which process them.")
(defun gdb-resync()
@@ -1539,6 +1556,9 @@
(defun gdb-error (ignored)
(setq gdb-error (not gdb-error)))
+(defun gdb-thread-changed (ignored)
+ (gdb-frames-force-update))
+
(defun gdb-post-prompt (ignored)
"An annotation handler for `post-prompt'.
This begins the collection of output from the current command if that