1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-20 18:17:20 +00:00
Commit Graph

153 Commits

Author SHA1 Message Date
Richard M. Stallman
2ef4e909f6 (easy-mmode-defmap): Enable "Up Stack", "Down Stack", and
"Finish Function" menu map entries for jdb mode.
(gud-jdb-use-classpath): New customization variable.
(gud-jdb-command-name): Add customization.
(gud-jdb-classpath, gud-marker-acc-max-length): New variables.
(gud-jdb-classpath-string): New variable.
(gud-jdb-source-files, gud-jdb-class-source-alist): Add doc strings.
(gud-jdb-build-source-files-list): Likewise.
(gud-jdb-massage-args): Record any command argument classpath
string in `gud-jdb-classpath-string'.
(gud-jdb-lowest-stack-level): New function, finds bottom of current
java call stack in jdb output.
(gud-jdb-find-source-using-classpath, gud-jdb-find-source)
(gud-jdb-parse-classpath-string): New functions.
(gud-jdb-marker-filter): Search/detect classpath information in
jdb's output.  marker regexp updated to match oldjdb and jdb output
formats.  Expand search for source files to include new/old methods
using new functions above.  Do not allow `gud-marker-acc' to grow
without bound.
(jdb): Set classpath information (if available) as jdb is started.
Change `gud-break' and `gud-remove'
to use new %c ("class") escape in format strings.  Add
`gud-finish', `gud-up', `gud-down' command string functions, and
add them to the local menu map.  Update `comint-prompt-regexp' for
jdb and oldjdb.  If attaching to an already running java VM and
configured to use classpath, send command to query for classpath,
else use previous method for finding and parsing java
sources.  Set `gud-jdb-find-source' function accordingly.
(gud-mode): Doc fix.
(gud-format-command): Add support for new %c ("class") escape.
(gud-find-class): New function in support of %c escape.
2002-01-18 18:57:20 +00:00
Pavel Janík
110c171f4d Fix typo. 2002-01-13 10:09:20 +00:00
Pavel Janík
aa3b6a3fa1 (jdb): Doc fix. 2001-12-11 07:33:06 +00:00
Richard M. Stallman
38eba48567 (gdb): Define and bind gud-jump. 2001-12-11 06:06:06 +00:00
Eli Zaretskii
cfcda0ba4a (dbx) <gud-dbx-use-stopformat-p>: Move this case into the
`t' branch of `cond', since Irix 6.1 and up is a special case of
the standard dbx interface.
2001-09-11 18:29:37 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Stefan Monnier
d2d1851b5d (gud-gdb-run-command-fetch-lines): Use forward-line
rather than beginning-of-line to avoid problems with fields.
(gud-perldb-massage-args): Use unless and push.
(gud-chdir-before-run): New var.
(gud-common-init): Use it.
2001-05-23 18:41:33 +00:00
Stefan Monnier
e5ef2f5cae (gud-jdb-build-source-files-list): Fix paren typo. 2001-05-11 22:24:40 +00:00
Gerd Moellmann
1c636b5f4b (gud-perldb-massage-args): Avoid nreverse'ing a list
part of which is a constant.
2001-01-26 11:30:01 +00:00
Stefan Monnier
c157af51b5 (gud-minor-mode): New var.
(gud-symbol, gud-val): New functions.
(gud-find-file): Copy gud-minor-mode to the new buffer.
(gud-menu-map): Include entries for commands that are not always
available, using :enable to (de)activate them.
(gud-minor-mode-map): New map.  Add it to minor-mode-map-alist.
(gud-mode-map): New map.
(gud-gdb-find-file, gud-sdb-find-file, gud-dbx-find-file)
(gud-xdb-find-file, gud-perldb-find-file, gud-pdb-find-file):
Don't set up gud's menu (it's done by the minor-mode).
(gud-minibuffer-local-map): New.
Replace gdb-minibuffer-local-map and pdb-minibuffer-local-map.
(gud-query-cmdline): New function.
(gdb, sdb, dbx, xdb, perldb, pdb, jdb): Use it.  Set gud-minor-mode.
(gud-mode): Use define-derived-mode.
Don't set up gud's menu (it's done by the minor-mode).
(gud-chop-words): Remove.
(gud-common-init): Use split-string instead.
(gud-new-keymap, gud-make-debug-menu): Eradicate.
2000-11-12 18:48:22 +00:00
Miles Bader
136b4eda87 (gud-basic-call): Temporarily widen gud comint buffer while checking for
prompt to delete.  Use `forward-line 0' instead of beginning-of-line.
(gud-filter): Temporarily widen gud comint buffer while examining output.
2000-08-19 01:59:21 +00:00
Miles Bader
f09b5567e6 (gud-filter): Use `with-current-buffer' instead of save-excursion when
inserting the output, so that point gets updated correctly; the old
method relied on a rather dodgy side-effect of comint-output-filter to
avoid the effect of save-excursion.
2000-08-10 10:54:40 +00:00
Miles Bader
01d8967d66 (gud-gdb-complete-command): Use comint-line-beginning-position. 2000-08-07 14:54:35 +00:00
Gerd Moellmann
8050f8c8a5 (gud-jdb-directories): Doc fix. 2000-05-19 20:35:18 +00:00
Gerd Moellmann
1edb5ce2f6 (gud-gdb-find-file): Call find-file-noselect with NOWARN
argument.
2000-04-27 10:41:43 +00:00
Stefan Monnier
471cd1d3fe (gud-jdb-build-source-files-list): Fix typo. 2000-04-17 10:37:49 +00:00
Gerd Moellmann
ffc50f2aab (gud-jdb-build-source-files-list): Change file-exists-p
to file-directory-p.
2000-04-15 11:33:45 +00:00
Gerd Moellmann
90757bb354 (gud-jdb-build-source-files-list): Check that directory
exists before calling directory-files.
2000-04-14 13:27:48 +00:00
Dave Love
b2e6047538 (gud-jdb-build-class-source-alist): Prepend space to scratch buffer
name.
(gud-format-command): Use int-to-string in ?l case.  Simplify slightly.
2000-02-23 22:17:05 +00:00
Gerd Moellmann
a09754e6c6 (gud-perldb-massage-args): Handle the case "perl -e 0"
the default when invoking perldb in a non-Perl buffer) and other
cases involving -e or --.
1999-11-04 20:52:05 +00:00
Gerd Moellmann
f2eb772dca (gud-perldb-massage-args): Massage correctly in the
presence of perl switches other than "-e".
1999-11-01 21:10:27 +00:00
Richard M. Stallman
8261aae6ec (gud-make-debug-menu): Make a child for the
local menu, for its menu bar, and the debug menu.

(gdb, sdb, dbx, xdb, perldb, pdb, jdb):
Use the history for arg-reading in the simple way.
1999-09-08 05:17:05 +00:00
Richard M. Stallman
7373939990 (gud-format-command): "%F" means file sans extension.
(jdb): use %F, not %f, for gud-break.
1999-05-17 01:38:59 +00:00
Karl Heuer
fe9891e0c3 (gud-jdb-massage-args): Spelling fix. 1999-02-23 22:17:48 +00:00
Andreas Schwab
25330efdb5 (jdb): Fix regexp for comint-prompt-regexp. 1999-02-12 10:38:47 +00:00
Richard M. Stallman
18aa807e60 (gud-common-init): Use pop-to-buffer.
(same-window-regexps): Add an element that matches all gud buffers.
1998-11-19 04:33:37 +00:00
Karl Heuer
acb50e3cd4 (gud-speedbar-key-map) New variable.
(gud-install-speedbar-variables) New function
Install speedbar keymap only when speedbar is loaded.
(gud-gdb-get-stackframe) Added : to regex for c++.
1998-07-10 16:47:28 +00:00
Richard M. Stallman
88be0819a1 (gud-filter): extend scope of binding of gud-filter-defer-flag. 1998-06-12 05:59:33 +00:00
Richard M. Stallman
500f12df89 (gud-jdb-class-source-alist): defvar moved up.
(gud-jdb-analysis-buffer): Likewise.
1998-05-24 17:16:20 +00:00
Richard M. Stallman
d2d23393cd Support pdb.
(pdb): New function.
(gud-pdb-command-name): New variable.
(pdb-minibuffer-local-map): Likewise.
(gud-pdb-find-file): New function.
(gud-pdb-marker-filter): New function.
(gud-pdb-marker-regexp*): New variables.
(gud-pdb-massage-args): New function.
(gud-pdb-history): New variable.
1998-05-21 03:34:21 +00:00
Richard M. Stallman
f4b643a15f (gud-perldb-marker-acc): Variable deleted.
(gud defgroup): Doc fix.
1998-05-20 05:24:42 +00:00
Karl Heuer
35dd3c558f (jdb): Do proper analysis of classes defined in a Java
source.  This removes the restriction of one class per file.
(gud-jdb-package-of-file): Removed.  Replaced with parsing routines.
(gud-jdb-skip-whitespace): New function.
(gud-jdb-skip-single-line-comment): New function.
(gud-jdb-skip-traditional-or-documentation-comment): New function.
(gud-jdb-skip-whitespace-and-comments): New function.
(gud-jdb-skip-id-ish-thing): New function.
(gud-jdb-skip-string-literal): New function.
(gud-jdb-skip-character-literal): New function.
(gud-jdb-skip-block): New function.
(gud-jdb-analyze-source): New function.
(gud-jdb-build-class-source-alist-for-file): New function.
(gud-jdb-analysis-buffer): New variable.
(gud-jdb-build-class-source-alist): Cleaner at the expense of new
variable.
1998-04-08 19:07:45 +00:00
Richard M. Stallman
c3fd0eea6c Add support for jdb (Java debugger).
(jdb): New function.
(gud-jdb-history): New variable.
(gud-jdb-directories): New variable.
(gud-jdb-source-files): New variable.
(gud-jdb-build-source-files-list): New function.
(gud-jdb-package-of-file): New function.
(gud-jdb-class-source-alist): New variable.
(gud-jdb-build-class-source-alist): New function.
(gud-jdb-massage-args): New function.
(gud-jdb-find-source-file): New function.
(gud-jdb-marker-filter): New function.
(gud-jdb-find-file): New function.
(gud-jdb-command-name): New variable.
(gud-perldb-command-name): Variable renamed from perldb-command-name.
1998-04-02 05:04:20 +00:00
Eric M. Ludlam
e9a918f970 Added gud-speedbar-buttons, and support for GDB buttons. 1998-01-23 02:04:20 +00:00
Karl Heuer
7c82656b08 (gud-mips-p): Fix regexp so it will match alphaev56-* too. 1997-12-07 21:40:41 +00:00
Andreas Schwab
1a3ce5c466 (gud-sentinel): Set mode-line-process in the process
buffer, not the current buffer.
1997-11-21 10:34:10 +00:00
Richard M. Stallman
d6efd584a0 (perldb): Fix paren error in call to read-from-minibuffer. 1997-09-12 20:58:57 +00:00
Geoff Voelker
15cf3eccb8 (gud-gdb-marker-regexp): Allow for drive letter and colon. 1997-09-02 19:39:35 +00:00
Richard M. Stallman
c404182949 Comment change. 1997-08-05 20:15:34 +00:00
Richard M. Stallman
f6aa627c0b (gud): Fix defgroup doc. 1997-08-05 08:10:20 +00:00
Richard M. Stallman
34c8b6731d (gud-dgux-p, gud-dguxdbx-marker-filter): New functions.
(dbx): Use them.
1997-06-01 23:50:47 +00:00
Richard M. Stallman
69c1dd37e3 Use defgroup and defcustom. 1997-05-05 11:57:31 +00:00
Richard M. Stallman
c47264b363 (gud-mode): Add a mode-class property. 1997-05-05 04:22:06 +00:00
Richard M. Stallman
1ac95fabf3 (gud-gdb-marker-regexp): Use colon always, not path-separator. 1997-01-07 21:49:53 +00:00
Richard M. Stallman
67580ab566 Move two function definitions. 1996-10-08 08:03:42 +00:00
Richard M. Stallman
5dd9db3bbd (perldb): Supply visited file name, or -e 0, as default args. 1996-09-28 20:37:44 +00:00
Richard M. Stallman
aa9063cb23 (gud-perldb-massage-args): Handle -e in ARGS.
(gud-perldb-marker-filter): Handle drive letters in file name.
(perldb): Update comint-prompt-regexp for latest Perl.

(gud-mode): Locally set comint-input-ignoredups to t.
1996-09-25 07:17:18 +00:00
Richard M. Stallman
f55d65a166 (gud-display-line): Don't call display-buffer
if buffer already has a window.
1996-09-20 18:56:36 +00:00
Richard M. Stallman
ab4b0d2f59 (gud-find-c-expr): Renamed from find-c-expr.
Don't get fooled by if and while statements.
(gud-expr-compound): Renamed from expr-compound.
(gud-expr-compound-sep): Renamed from expr-compound-sep.
(gud-next-expr): Renamed from expr-next.
(gud-prev-expr): Renamed from expr-prev.
(gud-forward-sexp): Renamed from expr-forward-sexp.
(gud-backward-sexp): Renamed from expr-backward-sexp.
(gud-innermost-expr): Renamed from expr-cur.
1996-09-13 21:58:23 +00:00
Richard M. Stallman
f579226245 (gdb): Undo previous change. 1996-08-01 22:37:47 +00:00