unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* gud.el bug + patch
@ 2006-03-23  4:54 Karl Chen
  2006-03-24 12:59 ` Nick Roberts
  0 siblings, 1 reply; 9+ messages in thread
From: Karl Chen @ 2006-03-23  4:54 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-03-28  1:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-23  4:54 gud.el bug + patch Karl Chen
2006-03-24 12:59 ` 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

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).