From: Karl Chen <quarl@cs.berkeley.edu>
Subject: gud.el bug + patch
Date: Wed, 22 Mar 2006 20:54:52 -0800 [thread overview]
Message-ID: <quack.20060322T2054.lthfyl9hiar@roar.cs.berkeley.edu> (raw)
I'm using Emacs HEAD 2006-03-15 and gdb 6.4.
When I run M-x gdb, I get
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
get-buffer-window(nil)
gdb-display-source-buffer(#<buffer breaker.cpp>)
gud-display-line("/home/quarl/proj/debfsv/analyzer/smbase/breaker.cpp" 16)
gud-display-frame()
I believe this is a bug in `gud-gdb-marker-filter', where
`gud-last-frame' gets set to
("source /path/file.cc" . 19)
I think this should be
("/path/file.cc" . 42).
`gdb --annotate=3' gives output such as:
^Z^Zsource /path/file.cc:19:512:beg:0x80f0031
This patch to `gud-gdb-marker-regexp' fixes the problem.
--- gud.el 16 Mar 2006 14:56:18 -0800 1.100
+++ gud.el 22 Mar 2006 20:48:03 -0800
@@ -558,7 +558,7 @@
;; This used to use path-separator instead of ":";
;; however, we found that on both Windows 32 and MSDOS
;; a colon is correct here.
- (concat "\032\032\\(.:?[^" ":" "\n]*\\)" ":"
+ (concat "\032\032\\(?:source \\)?\\(.:?[^" ":" "\n]*\\)" ":"
"\\([0-9]*\\)" ":" ".*\n"))
;; There's no guarantee that Emacs will hand the filter the entire
--
Karl 2006-03-22 20:42
next reply other threads:[~2006-03-23 4:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-23 4:54 Karl Chen [this message]
2006-03-24 12:59 ` gud.el bug + patch Nick Roberts
2006-03-24 14:14 ` Karl Chen
2006-03-24 22:05 ` Nick Roberts
2006-03-24 22:57 ` Karl Chen
2006-03-25 0:15 ` Nick Roberts
2006-03-27 23:23 ` Karl Chen
2006-03-28 1:05 ` Nick Roberts
2006-03-28 1:15 ` Karl Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=quack.20060322T2054.lthfyl9hiar@roar.cs.berkeley.edu \
--to=quarl@cs.berkeley.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).