Commit Graph

10 Commits

Author SHA1 Message Date
Peter Ross
b0505406ae Use '.' for the module seperator instead of ':' when matching
Estimated hours taken: 0.5
Branches: main

scripts/gud.el:
	Use '.' for the module seperator instead of ':' when matching
	procedure specifications.
2003-03-10 09:08:20 +00:00
Peter Ross
7743abd9d1 Use a shy-group (one which doesn't record its result in a
Estimated hours taken: 0.1
Branches: main, release

scripts/gud.el:
	Use a shy-group (one which doesn't record its result in a
	matched substring).
2002-12-04 17:08:45 +00:00
Peter Ross
ff4acab0b0 Fix the regexp which matches a procedure specification so that
Estimated hours taken: 1
Branches: main, release

scripts/gud.el:
	Fix the regexp which matches a procedure specification so that
	it matches procedures which are contained in sub-modules.
2002-12-04 16:45:50 +00:00
Fergus Henderson
a14d0ab6bf Fix to work with Emacs 20.4.1 on Linux.
Estimated hours taken: 2

scripts/gud.el:
	Fix to work with Emacs 20.4.1 on Linux.
	There were several problems:
	(1) The gud-redirect-io stuff was broken, since it relies on ttys,
	    and apparently Emacs now just uses pipes rather than ttys.
	    For now I've just disabled that by setting gud-redirect-io
	    to false (nil).
	(2) There were some bugs in the code for the case where gud-redirect-io
	    was false (nil):
	    - I'd accidentally omitted the `progn' around the body of an
	      if-then-else, and thus accidentally written `if (...) A else B'
	      when I had intended to write `if (...) { A; B; }'.
	    - One part of the code was assuming that the gud-prog-buffer
	      variable was set, but this was only true for the case where
	      gud-redirect-io was true (t).
2000-12-05 07:07:00 +00:00
Peter Ross
d91b5ab9eb Fix a bug the that the caller context was being obtained from the
Estimated hours taken: 1

mercury/scripts/gud.el:
    Fix a bug the that the caller context was being obtained from the
    wrong part of the line.
2000-01-15 07:08:48 +00:00
Fergus Henderson
8429d49925 Improve the Emacs mdb interface, in particular by using
Estimated hours taken: 6

Improve the Emacs mdb interface, in particular by using
the new mdb line number support.

scripts/gud.el:
	Find the source location by parse the line numbers that mdb
	prints, rather than using tags to find the current source
	location.

	Add support for setting a breakpoint on the current line.
	Also add a few other commands to the MDB menu, in particular
	the commands for interactive queries and a command to list
	all the current aliases.

	Ensure that the program execution buffer is displayed
	when you start, so that if you type the wrong command name,
	the error message is visible rather than in a buffer that
	is not displayed.
1999-11-18 17:27:14 +00:00
Fergus Henderson
9d276af482 Fix a bug: the code was depending on the first' and second'
Estimated hours taken: 0.5

scripts/gud.el:
	Fix a bug: the code was depending on the `first' and `second'
	functions, which are defined only if you load the `viper'
	package.  The fix is to use `car' and `cdr' instead.
1999-11-18 06:10:21 +00:00
Fergus Henderson
b44b4f7115 Use the `--tty' option of mdb to put the output of the program
Estimated hours taken: 4

scripts/gud.el:
	Use the `--tty' option of mdb to put the output of the program
	in a different window than the output of mdb.
1998-12-21 17:45:10 +00:00
Fergus Henderson
c5a69daae3 Add support for debugging Mercury code using mdb to "Gud",
Estimated hours taken: 16

Add support for debugging Mercury code using mdb to "Gud",
the Emacs "Grand Unified Debugger".  This lets you run mdb
under emacs, using the tags file provided by `mtags --emacs'
for source code linking.

scripts/gud.el:
	Add support for Mercury.

Mmake.common.in:
scripts/Mmakefile:
bindist/Mmakefile:
bindist/bindist.Makefile.in:
	Modify the installation scripts to install gud.el in
	.../lib/mercury/elisp.

.INSTALL.in:
bindist/bindist.INSTALL:
	Document what you need to add to your ~/.emacs file to
	use the Emacs mdb interface.
1998-12-21 11:34:00 +00:00
Fergus Henderson
0eb7007bb1 Import the file gud.el (a debugger interface) from Emacs 19.34.
Estimated hours taken: 0.25

Import the file gud.el (a debugger interface) from Emacs 19.34.
1998-12-21 09:22:32 +00:00