1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00
Commit Graph

76 Commits

Author SHA1 Message Date
Richard M. Stallman
a96e9ed73e (gud-massage-args): Variable and function deleted.
(gud-common-init): Don't set the variable.
1995-03-02 08:34:04 +00:00
Richard M. Stallman
dfbd82a69a (gud-common-init): Put substed file name back in original
sequence in the args.  Pass ARGS to massage-file even if no file name.
(gud-gdb-massage-args, gud-sdb-massage-args, gud-dbx-massage-args)
(gud-mipsdbx-massage-args, gud-xdb-massage-args)
(gud-perldb-massage-args): Don't add FILE onto the args.
1995-03-02 08:33:01 +00:00
Richard M. Stallman
23a3aa0a12 (gdb): In gud-remove, specify the source file.
(gud-new-keymap): New function.
(gud-xdb-find-file, gud-dbx-find-file, gud-sdb-find-file, gud-gdb-find-file):
Use it for keymap inheritance.
(gud-mode): Use gud-new-keymap, so inherit keymaps..
1995-01-22 16:44:58 +00:00
Richard M. Stallman
9bb4544ba0 (gud-gdb-find-file): Propagate debug menu to found buffers.
(gud-dbx-find-file, gud-xdb-find-file, gud-sdb-find-file, gud-perldb-find-file):
Likewise.
(gud-menu-map): New variable.
(gud-mode): Use gud-menu-map and move the menu-setting outside.
1995-01-18 04:51:29 +00:00
Richard M. Stallman
e802811f1e (dbx): Fix missing cast of $curline for Irix.
(gud-irixdbx-marker-filter): Make $curline cast consistent with the others.
1995-01-17 22:31:45 +00:00
Richard M. Stallman
7f62925280 (gud-dbx-marker-filter): Use gud-marker-acc like gud-gdb-marker-filter.
(gud-sdb-marker-filter): Use gud-marker-acc.
1995-01-02 23:40:27 +00:00
Richard M. Stallman
2291bfaae1 (gdb): Correct tbreak doc string.
(gud-mode): Define a Gud menu.
(gdb): Set debugger-specific menu entries.
(sdb) (dbx) (xdb): Likewise.
1994-12-22 23:22:32 +00:00
Richard M. Stallman
2fb419e1ce (gud-irixdbx-marker-filter): Changes for Irix dbx.
(dbx): gud-up, gud-down are now special cases for Irix.
1994-12-21 19:42:59 +00:00
Karl Heuer
4b8b296e5c (gud-basic-call): Detect error earlier. 1994-11-30 21:44:25 +00:00
Richard M. Stallman
bed6a98d6f (gud-gdb-marker-filter, gud-irixdbx-marker-filter)
(gud-perldb-marker-filter, gud-mipsdbx-marker-filter):
No need for save-match-data.
1994-11-22 04:42:56 +00:00
Karl Heuer
fd63b4f4d8 (gud-gdb-complete-command): Add a trailing single quote to partially quoted
unique completions.
1994-11-03 20:30:28 +00:00
Richard M. Stallman
0ec5b01db4 (gud-common-init): If file arg has no directory,
let the debugger search PATH, and don't set default-directory.
1994-10-29 11:14:05 +00:00
Richard M. Stallman
4bc7c5ab7b (gud-irixdbx-marker-filter): Cast $curline to int. 1994-10-25 20:29:03 +00:00
Richard M. Stallman
9fe320f1e3 (dbx): Delete call to gud-switch-to-buffer.
(gud-sdb-marker-filter): Handle SVR4 clumped lines.
1994-10-21 19:27:26 +00:00
Richard M. Stallman
c561a0cbfd (gud-filter): Don't bind inhibit-quit.
Do nothing if buffer is dead.
1994-10-13 18:20:55 +00:00
Richard M. Stallman
c75e51a325 Really delete gud-overload-functions. 1994-09-30 09:12:09 +00:00
Richard M. Stallman
ee97eac30f (gud-overload-functions): Function deleted.
(gud-massage-args, gud-marker-filter, gud-find-file): New vars.
Mark them as permanent locals.
(gud-massage-args, gud-marker-filter, gud-find-file):
In these functions, use those variables.
(gud-common-init): 3 new args give values for those variables.
(gdb, sdb, dbx, xdb, perldb): Pass new args to gud-common-init.
(gud-gdb-complete-command): Bind gud-marker-filter.
(gud-find-file): Condense multiple slashes to single slashes.
1994-09-30 09:11:36 +00:00
Richard M. Stallman
2e252751cb (dbx): Use newline, not semicolon, between file and stop cmds. 1994-08-28 04:14:59 +00:00
Richard M. Stallman
13118fc3d8 (dbx): Use system-configuration, not system-type. 1994-07-24 20:01:13 +00:00
Richard M. Stallman
9f24ea1463 (gud-mips-p): Check for OSF system on Alpha also. 1994-07-07 16:50:55 +00:00
Richard M. Stallman
8f6c93e2bb (gud-massage-args): Fix error message syntax.
(gud-marker-filter, gud-find-file): Likewise.
(gud-display-line): Don't use dialog box for questions.
1994-06-15 18:05:50 +00:00
Richard M. Stallman
16776e8d91 Use ctl-x-map to bind C-x SPC. 1994-05-28 21:49:35 +00:00
Richard M. Stallman
e290aebbf9 (sdb): Handle tags-file-name as nil. 1994-05-12 02:14:13 +00:00
Karl Heuer
76214250fa Allow marker string to arrive in mid-line. 1994-05-10 05:58:57 +00:00
Richard M. Stallman
0d29cfe966 (gud-marker-acc): Use make-variable-buffer-local. 1994-05-04 20:27:08 +00:00
Karl Heuer
d733c5ec03 Update copyright. 1994-05-03 22:46:37 +00:00
Richard M. Stallman
f266485d3e (gud-mips-p, gud-irix-p): Test system-configuration.
(gud-mipsdbx-marker-filter): Reimplemented based on
gud-gdb-marker-filter, with regexps appropriately altered.
(gud-marker-acc): New variable, replacing the
debugger-specific accumulation variables.
(dbx): Arrange to fire up the source window with irixdbx.

(dbx): Fix gud-break under SunOS, at least.  (I suspect
this is a general problem, because of the \n for some reason.)

(gud-dbx-mips-p, gud-dbx-irix-p): Use system-type to
choose system-dependent dbx incantations.

(gud-dbx-mips-p): Use "-emacs" for OSF/1 dbx as for MIPS.

(gud-irix-dbx-p): Determines whether to use (new) gud-irixdbx-marker-filter.
(gud-irixdbx-marker-filter): New function.
(dbx): Insert case for Irix.
1994-04-28 07:32:04 +00:00
Richard M. Stallman
0b358e64b3 (gud-mode, gud-sentinel):
Remove space after `:' in mode-line-process.
1994-04-24 08:16:18 +00:00
Richard M. Stallman
5afe3a2b9c (gud-filter): Call comint-output-filter at the end. 1994-04-21 18:45:15 +00:00
Richard M. Stallman
f54877b282 (gdb, sdb, dbx, xdb, perldb): Set paragraph-start.
(gud-mode): Make paragraph-start buffer-local.
1994-04-21 06:24:36 +00:00
Karl Heuer
78328f3333 (gud-filter): Let comint-output-filter do the hard work. 1994-04-12 04:07:18 +00:00
Richard M. Stallman
30df2a5340 (gud-comint-buffer): Move defvar up. 1994-03-25 22:59:12 +00:00
Richard M. Stallman
0e0de659c7 (gud-gdb-complete-command): New defun to support true
GDB completion in the GUD buffer.  Requires assistance from
GDB in the form of the `complete' command.
(gud-gdb-complete-in-progress, gud-gdb-complete-string,
gud-gdb-complete-break, gud-gdb-complete-list,
gud-gdb-complete-filter): New.
(gdb): Bind TAB to gud-gdb-complete-command.
1994-03-25 18:31:42 +00:00
Karl Heuer
697d0646db (gud-filter): Update comint-last-input-end. 1994-03-15 04:17:18 +00:00
Karl Heuer
e886137a18 (gdb): Use a minibuffer map with TAB to complete a filename. 1994-03-07 20:13:50 +00:00
Richard M. Stallman
2b64612dcb (gud-mode): Define C-c C-l in gud buffer. 1994-02-18 20:10:05 +00:00
Richard M. Stallman
52b85866af (gud-common-init): Don't crash if no file specified. 1994-01-08 12:18:55 +00:00
Richard M. Stallman
13eaa0261c (gud-format-command): Rewrite.
(gud-format-command): Use gud-last-last-frame if
gud-last-frame is nil.

(gud-mipsdbx-massage-args, gud-mipsdbx-marker-filter):
New functions for dbx support on Mips under Ultrix.
(gud-dbx-mips-p, gud-mipsdbx-marker-acc): New variables.
(dbx) If gud-dbx-mips-p is non-nil, overload above two functions
and initialize appropriate command strings for dbx.

(gud-common-init): Call substitute-in-file-name.

(dbx): Let `comint-prompt-regexp' not match more than one line.
1993-12-23 02:56:37 +00:00
Richard M. Stallman
8ba194fcc0 Comment change. 1993-10-04 23:50:32 +00:00
Richard M. Stallman
2c32e5c611 Fix previous change. 1993-09-17 16:43:38 +00:00
Richard M. Stallman
575661b16c (perldb): New function, plus subroutines. 1993-09-16 20:02:25 +00:00
Richard M. Stallman
107a16d199 (gud-dbx-marker-filter): Detect signals as well as bpts. 1993-08-09 04:36:47 +00:00
Jim Blandy
304188d616 * gud.el (gud-gdb-marker-filter): Preserve the match data across
the filter's execution.

* gud.el (gud-gdb-marker-filter): If we received some text after
the position marker, append it to any text before the marker,
instead of throwing away the text before the marker.
1993-07-30 22:43:39 +00:00
Jim Blandy
768c29d02f * gud.el (gud-gdb-marker-filter): Do not assume that the position
markers from GDB will always be received in one chunk of input;
gud-gdb-marker-filter may be called several times, each time
providing a little more of the position marker.
(gud-gdb-marker-acc): New variable.
(gud-gdb-marker-filter): If we have received what could be the
beginning of a position marker, hold that text in
gud-gdb-marker-acc for the next time we get called, until we have
enough information to decide for sure.

* gud.el (gud-gdb-marker-filter): Only recognize GDB position
markers if they occur at the beginning of the line.  They always
do, and this reduces the likelihood that the above change will
hold back output that isn't really a position marker.
1993-07-30 01:39:20 +00:00
Richard M. Stallman
7f359a2155 (dbx): Use %d in gud-break.
(gud-format-command): Support %d.  Delete spurious progns.
1993-07-29 22:35:23 +00:00
Jim Blandy
7447c37a37 * gud.el (gud-last-last-frame): Specify initial value. `dbx'
doesn't work unless we do.
1993-07-29 04:07:02 +00:00
Richard M. Stallman
9d021db37b (dbx): For gud-break, send a file command and a stop command. 1993-07-27 05:51:39 +00:00
Roland McGrath
a223b10d5e (gud-debugger-startup): Replaced with gud-massage-args.
(gud-{gdb,sdb,xdb}-debugger-startup): Replaced with gud-*-massage-args.
(gdb, sdb, xdb): Argument is command line, not args for it.  Remove
debugger name from prompt and put it in the default input instead.
Overload gud-massage-args instead of gud-debugger-startup.
(gud-chop-words): New function; subr for gud-common-init.
(gud-common-init): Argument is command line, not args for it.
Rewritten to use gud-chop-words instead of temp buffer and kludge involving
read.  Find the program name as the first word of the command line.
Use make-comint and gud-massage-args in place of gud-debugger-startup.
Expand the file name before passing it to gud-massage-args.
1993-07-15 01:55:13 +00:00
Roland McGrath
96f4e22e39 Add (provide 'gud). 1993-07-07 05:44:53 +00:00
Jim Blandy
f6376199d5 * gud.el: Add history lists to the debugging commands, so we don't
have to retype the filename every invocation.
	(gud-gdb-history, gud-sdb-history, gud-dbx-history,
	gud-xdb-history): New variables.
	(gdb, sdb, dbx, xdb): Use them when reading the argument string.
1993-06-30 06:27:30 +00:00