unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* gud/gdb
@ 2007-09-26 17:32 Daniel R. Grayson
  2007-09-27  5:21 ` gud/gdb Nick Roberts
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel R. Grayson @ 2007-09-26 17:32 UTC (permalink / raw)
  To: bug-gnu-emacs; +Cc: dan


The problem is hard to explain how to reproduce, but occasionally gdb gets
really confused and, in addition to not displaying the buffer with the source
code where the program has stopped, it also issues numerous error messages from
the process filter.

Here is the fix I found that worked for me.  Someone who understands gud better
than I should check the fix for correctness.

In

	lisp/progmodes/gud.el

change

(defvar gud-gdb-marker-regexp
  ;; 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]*\\)" ":"
	  "\\([0-9]*\\)" ":" ".*\n"))

to

(defvar gud-gdb-marker-regexp
  ;; 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\032source \\(.:?[^" ":" "\n]*\\)" ":"
	  "\\([0-9]*\\)" ":" ".*\n"))

=============================================================================

In GNU Emacs 22.1.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2007-07-29 on vernadsky, modified by Ubuntu
Windowing system distributor `The X.Org Foundation', version 11.0.10300000
configured using `configure  '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.1/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2''

=============================================================================

$ gdb --version
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu".

=============================================================================


--
              Daniel R. Grayson, Professor (retired, Emeritus)
              Department of Mathematics
              University of Illinois at Urbana-Champaign
        www:  http://www.math.uiuc.edu/~dan/
      email:  dan@math.uiuc.edu
    us mail:  2409 S. Vine St., Urbana, IL 61801, USA
      phone:  217-367-6384 home   (88.20224W, 40.08541N)
	      217-333-6209 office (88.2280 W, 40.1092 N)





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

end of thread, other threads:[~2007-09-29  0:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-26 17:32 gud/gdb Daniel R. Grayson
2007-09-27  5:21 ` gud/gdb Nick Roberts
2007-09-27 12:30   ` gud/gdb Daniel R. Grayson
2007-09-28  6:04     ` gud/gdb Nick Roberts
2007-09-28 12:50       ` gud/gdb Daniel R. Grayson
2007-09-29  0:57         ` gud/gdb Nick Roberts

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