[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
From: |
Nick Roberts |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el |
Date: |
Fri, 10 Feb 2006 09:00:39 +0000 |
Index: emacs/lisp/progmodes/gdb-ui.el
diff -u emacs/lisp/progmodes/gdb-ui.el:1.129
emacs/lisp/progmodes/gdb-ui.el:1.130
--- emacs/lisp/progmodes/gdb-ui.el:1.129 Tue Feb 7 06:57:27 2006
+++ emacs/lisp/progmodes/gdb-ui.el Fri Feb 10 09:00:30 2006
@@ -4,7 +4,8 @@
;; Maintainer: FSF
;; Keywords: unix, tools
-;; Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+;; Copyright (C) 2002, 2003, 2004, 2005, 2006
+;; Free Software Foundation, Inc.
;; This file is part of GNU Emacs.
@@ -2968,6 +2969,35 @@
(gdb-invalidate-assembler))
+;; For debugging Emacs only (assumes that usual stack buffer already exists).
+(defun gdb-xbacktrace ()
+ "Generate a full lisp level backtrace with arguments."
+ (interactive)
+ (setq my-frames nil)
+ (with-current-buffer (get-buffer-create "xbacktrace")
+ (erase-buffer))
+ (let (frame-number gdb-frame-number)
+ (with-current-buffer (gdb-get-buffer 'gdb-stack-buffer)
+ (save-excursion
+ (goto-char (point-min))
+ (while (search-forward "in Ffuncall " nil t)
+ (goto-char (line-beginning-position))
+ (looking-at "^#\\([0-9]+\\)")
+ (push (match-string-no-properties 1) my-frames)
+ (forward-line 1))))
+ (dolist (frame my-frames)
+ (gdb-enqueue-input (list (concat "server frame " frame "\n")
+ 'ignore))
+; (gdb-enqueue-input (list "server ppargs\n" 'gdb-get-arguments))
+ (gud-basic-call "server ppargs")
+)
+ (gdb-enqueue-input (list (concat "server frame " frame-number "\n")
+ 'ignore))))
+
+(defun gdb-get-arguments ()
+ (with-current-buffer "xbacktrace"
+ (insert-buffer-substring (gdb-get-buffer 'gdb-partial-output-buffer))))
+
;; Code specific to GDB 6.4
(defconst gdb-source-file-regexp-1 "fullname=\"\\(.*?\\)\"")
- [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el, Nick Roberts, 2006/02/07
- [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el,
Nick Roberts <=
- [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el, Nick Roberts, 2006/02/13
- [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el, Nick Roberts, 2006/02/14
- [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el, Nick Roberts, 2006/02/14
- [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el, Nick Roberts, 2006/02/16
- [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el, Nick Roberts, 2006/02/16
- [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el, Nick Roberts, 2006/02/17
- [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el, Nick Roberts, 2006/02/18
- [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el, Nick Roberts, 2006/02/19
- [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el, Nick Roberts, 2006/02/19
- [Emacs-diffs] Changes to emacs/lisp/progmodes/gdb-ui.el, Nick Roberts, 2006/02/20