1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00
Commit Graph

39 Commits

Author SHA1 Message Date
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
Richard M. Stallman
fce222c7f0 (gud-xdb-directories): Renamed from gud-xdb-paths.
Defvar moved earlier.  All uses changed.
(gud-xdb-debugger-startup): Rename local var `paths'.
(gud-xdb-file-name): Likewise.
1993-06-15 21:04:48 +00:00
Richard M. Stallman
6496f3d2b0 (xdb): New debugger supported (xdb under HPUX-PARISC).
(gud-xdb-debugger-startup): New function.
(gud-xdb-file-name, gud-xdb-accumulation): New functions.
(gud-xdb-marker-filter, gud-xdb-paths, gud-xdb-find-file): New.
1993-06-15 16:31:24 +00:00
Jim Blandy
32ab4c1069 * gud.el (gud-last-last-frame): New variable.
(gud-display-frame): Save the frame we displayed in
	gud-last-last-frame.
	(gud-refresh): Force gud-display-frame to jump to the last frame
	displayed, even if it has already done so once.
1993-06-11 11:28:28 +00:00
Jim Blandy
eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00
Richard M. Stallman
dcec1a3b19 Doc fixes. Delete local variable list at the end.
(expr-forward-sexp): Renamed from forw-expr.
(expr-backward-sexp): Renamed from back-expr.
1993-06-07 19:37:18 +00:00
Richard M. Stallman
2352cbea71 (gud-def): Don't use gud-key-prefix at compile time. 1993-05-31 05:54:07 +00:00
Richard M. Stallman
dd8e46c7e5 (gud-def): Fix inclusion of the define-key.
(gdb, sdb, dbx): Change bindings from letters to control chars.
(gud-common-init): Add save-excursion.
(gud-display-line): Don't mess with buffer-read-only.
(gud-filter): Set output-after-point *after* deleting old prompt.
1993-05-22 21:25:32 +00:00
Eric S. Raymond
f03e319c88 (gud-format-command): Fix %f expansuuin to send ondly the basename of
files to gdb.
1993-04-27 21:59:46 +00:00
Eric S. Raymond
5b08a462d2 Set no-byte-compile local variable t to work around a byte-compiler bug.
(gud-def, global-map): Move C-x C-a commands to global map.  Restore
original C-x SPC global binding.
1993-04-25 22:26:45 +00:00
Eric S. Raymond
45025813de (gud-mode): Created C-c synonym bindings in the GUD buffer's local map.
(gud-key-prefix): Changed to C-x C-a.
1993-04-14 16:41:51 +00:00
Eric S. Raymond
81937af25a (gdb, sdb, dbx): Improved prompting a la grep. 1993-04-10 14:28:05 +00:00
Eric S. Raymond
ee0155df12 Massive changes, amounting nearly to a rewrite. The new features
include auto-configuring support for SVr4, more commands, and a full minor-mode
implementation that binds all GUD commands not just in the GUD interaction
mode, but in C buffers visited by GUD.  The common prefix of GUD commands is
now C-x X, like electric-debug mode.
1993-04-08 16:35:48 +00:00
Jim Blandy
ad196291b4 * gud.el (gud-break): With a prefix argument, set a temporary
breakpoint.
	(gud-apply-from-source): New argument ARGS, to pass to FUNC.  Now
	it's really like `apply'.
	(gud-set-break): Add another argument to this method.
	Document it in the section describing how the methods are supposed
	to be used.
	(gud-gdb-set-break): New argument TEMP; if non-nil, set a
	temporary breakpoint.
	(gud-sdb-set-break, gud-dbx-set-break): New argument TEMP.  Ignore
	it, since I don't know how to set a temporary breakpoint in these
	debuggers.

	* gud.el (gud-break): With a prefix argument, set a temporary
	breakpoint.
	(gud-apply-from-source): New argument ARGS, to pass to FUNC.  Now
	it's really like `apply'.
	(gud-set-break): Add another argument to this method.
	Document it in the section describing how the methods are supposed
	to be used.
	(gud-gdb-set-break): New argument TEMP; if non-nil, set a
	temporary breakpoint.
	(gud-sdb-set-break, gud-dbx-set-break): New argument TEMP.  Ignore
	it, since I don't know how to set a temporary breakpoint in these
	debuggers.
1993-02-22 14:15:34 +00:00
Jim Blandy
d840a865ea * gud.el (gud-last-frame): Added defvar for this. 1992-09-30 08:36:57 +00:00
Jim Blandy
7739e1b816 * gud.el (gud-filter-insert): Previous changes misunderstood
the arrangement of unwind-protect and the save-excursion;
	restored that structure.
1992-09-30 08:29:25 +00:00
Jim Blandy
11270fa7b3 *** empty log message *** 1992-09-29 10:03:50 +00:00
Jim Blandy
53eb3a97fb * gud.el: When we send a command to the debugger via gud-call,
it's annoying to see the command and the new prompt in the
	debugger interaction buffer; nuke the command and the old prompt.
	(gud-delete-prompt-marker): New variable, with extensive documentation.
	(gud-mode): Make gud-delete-prompt-marker buffer-local, and
	initialize it.
	(gud-filter-insert): If gud-delete-prompt-marker is set, delete
	the prompt, and clear gud-delete-prompt-marker.
	(gud-call): Arrange for the last prompt printed to get deleted, by
	setting gud-delete-prompt-char.
1992-09-29 09:57:12 +00:00
Jim Blandy
6bde842720 * gud.el (gud-def): Doc fix.
(gud-gdb-marker-filter, gud-sdb-marker-filter,
	gud-dbx-marker-filter): Rename the argument `s' or `str' to
	`string', and change all uses; these definitions were referring to
	`string', which is unbound in the lexical context, but which
	happens to end up being bound to the right thing by the caller,
	gud-filter.
	(sdb): Set comint-prompt-regexp, not comint-prompt-pattern; the
	latter doesn't exist.
	(gud-dbx-debugger-setup): Use the argument `f', not the variable
	`file', which happens to be bound in the caller.
	(gud-filter-insert): The variable `start' is never used.  The
	variable `moving' is unnecessary.  The variable `old-buffer' and
	the unwind-protect form are unneeded, since save-excursion can do
	their work.  The binding of output-after-point should be done after
	switching to the process's buffer, not in whatever random buffer
	happens to be current when the process filter is called.  There's
	no need to set the process mark if we've just inserted at its
	location using insert-before-markers.
	(gud-read-address): Don't bother setting the variable `result'; it
	is never used.

	* gud.el (gud-mode-map): Bind gud-refresh to C-c C-l, not C-c l;
	the latter is reserved for the user's purposes.

	* gud.el (gdb, sdb, dbx): Use C-c C-r ("resume") for continuing,
	instead of C-c C-c.  C-c C-c should be comint-interrupt-subjob;
	it's important to have that available, and the C-c C-c binding is
	consistent with all the other comint-derived modes.
1992-09-29 07:45:05 +00:00
Jim Blandy
e8a57935cb entered into RCS 1992-08-04 04:15:43 +00:00
Richard M. Stallman
0d4ee84900 *** empty log message *** 1992-08-03 19:20:08 +00:00
Richard M. Stallman
b6df3e11b2 *** empty log message *** 1992-07-28 03:39:30 +00:00
Eric S. Raymond
24d725c2f3 *** empty log message *** 1992-07-24 21:00:20 +00:00
Eric S. Raymond
f961a17c44 *** empty log message *** 1992-07-17 07:10:46 +00:00
Jim Blandy
de49a6d37e *** empty log message *** 1992-07-16 21:47:30 +00:00
Jim Blandy
10a4c11f7e *** empty log message *** 1992-01-09 05:06:34 +00:00
Eric S. Raymond
13b80a602a Initial revision 1991-12-18 10:42:47 +00:00