1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00
Commit Graph

168 Commits

Author SHA1 Message Date
Stefan Monnier
9f6991fd86 Use match-string.
(gud-menu-map): Re-fix gdb-running to gud-running.
Activate up/down and finish for pdb.
(gud-def): Use backquotes.
(gdb, sdb, dbx, xdb, pdb, jdb, bashdb): Remove redundant menu bindings.
(gud-gdb-complete-in-progress, gud-gdb-complete-string)
(gud-gdb-complete-break, gud-gdb-complete-list):
Rename to gud-gdb-fetch-lines-in-progress, gud-gdb-fetch-lines-string,
gud-gdb-fetch-lines-break and gud-gdb-fetched-lines.
(gud-gdb-fetch-lines-filter): Rename from gud-gdb-complete-filter.
Add a `filter' argument and run it on `string'.
(gud-gdb-run-command-fetch-lines): Use it instead of
gud-gdb-speedbar-stack-filter.  Add a `skip' arg.
Return the fetched lines.
(gud-gdb-complete-command): Use it instead of cooking up
something by hand using gud-gdb-complete-filter.
(gud-gdb-get-stackframe): Use the new calling convention of
gud-gdb-run-command-fetch-lines.
(gud-gdb-fetched-stack-frame-list): Remove.
(gud-gdb-speedbar-stack-filter): Remove.
(gud-jdb-marker-filter): Change RE for easier extraction of submatches.
(gud-bashdb-command-name): Add "--debugger" argument here.
(bashdb): Use default gud-find-file and don't bother with
a massage-args function now that --debugger is make explicit.
(gud-bashdb-massage-args, gud-bashdb-find-file): Remove.
(bashdb): Don't provide.
(gud-target-name): New var.
(gud-common-init): Set it.
Also reset gud-running and gud-last-last-frame.
2002-12-05 16:51:56 +00:00
Richard M. Stallman
d4c2acb9d8 (gud-menu-map): Update for bashdb.
(perldb): Change prompt regexp.
(gud-bashdb-history, gud-bashdb-massage-args, gud-bashdb-marker-filter)
(gud-bashdb-find-file, gud-bashdb-command-name, bashdb): New.
2002-12-04 11:56:55 +00:00
Stefan Monnier
b94a30018e (gud-running): Rename from gdb-running. Update uses.
(gud-tool-bar-map): Use tool-bar-local-item-from-menu rather than
tool-bar-add-item-from-menu to avoid let binding tool-bar-map
which fails if tool-bar.el is loaded in the mean time.
(gud-file-name): New fun.
(gud-find-file): Use it as default value for gud-find-file.
(gud-speedbar-buttons): Discriminate on gud-minor-mode rather than
on gud-find-file.
(gud-gdb-find-file, gud-dbx-file-name, gud-dbx-find-file)
(gud-xdb-file-name, gud-xdb-find-file, gud-perldb-find-file)
(gud-pdb-find-file, gud-jdb-find-file): Remove.
(gud-query-cmdline): Don't stuff the whole cwd in the command.
(gdb, dbx, xdb, perldb, pdb, jdb): Use the default for gud-find-file.
(gud-mipsdbx-massage-args): Remove.
(gud-dbx-command-name): New var.  Do what gud-mipsdbx-massage-args did.
(gud-irixdbx-marker-filter): Use match-string and gud-file-name.
(gud-jdb-command-name): New var.
(gud-common-init): Re-instate RMS code of 11/13.
2002-12-03 21:07:39 +00:00
Nick Roberts
1a21c37000 (gdb-running): New variable.
(gud-menu-map): Use gdb-running to grey out toolbar buttons
with gdba in gdb-ui.el.
(gud-tool-bar-map): Move to avoid byte compiler warning.
2002-11-28 21:25:38 +00:00
Juanma Barranquero
2c46c4c84b Fix feature name in `provide'. 2002-11-14 08:56:31 +00:00
Nick Roberts
f36ca8323a (gud-find-file): Set up GDB tool bar.
(gud-menu-map): New commands: run, goto.
Enable some commands for gdba.
(gud-query-cmdline): Pass default directory to gdba.
(gdb): Defune gud-goto and gud-run.
(gud-gdb-complete-command): Maybe use gdba-complete-filter.
(gud-mode): Set up local tool bar.
(gud-display-line): For gdba, call gdb-display-source-buffer.
(gud-basic-call): For gdba, maybe delete the current prompt.
(gud-tool-bar-map): New variable.
(gud-read-address): Correction.
2002-11-14 01:56:58 +00:00
Richard M. Stallman
6e7bf73c7d (gdb): Undo 10-26 change. 2002-11-13 11:40:15 +00:00
Richard M. Stallman
3def0d2493 (gdb): Pass default-directory to GDB via -cd option. 2002-10-26 22:37:04 +00:00
Richard M. Stallman
a385f6bfe3 (gud-pdb-marker-regexp): Allow : and \ in file name.
(pdb): In gud-remove, pass down the file name.
2002-09-18 16:02:14 +00:00
Stefan Monnier
8b5cd4d0c5 (gud-gdb-massage-args, gud-sdb-massage-args)
(gud-pdb-massage-args): Delete.
(gdb, sdb, pdb): Don't pass gud-*-massage-args any more.
(gud-gdb-command-name): New var.  Put "--fullname" in there.
(gud-query-cmdline): Use the most recent executable as the default.
Don't add "--fullname" (it's only valid/meaningful for GDB).
(gud-xdb-marker-filter): Use match-string.
(gud-perldb-massage-args): Don't add "-d".
(gud-perldb-command-name): Add "-d".
(gud-common-init): If `massage-args' is nil, don't call it.
(gud-format-command): Don't hardcode point-min==1.
2002-09-12 21:26:27 +00:00
Simon Josefsson
cf681de6e5 (gud-gdb-massage-args): Don't secretly add -fullname.
(gud-query-cmdline): Add --fullname to the user cmdline.
2002-09-11 05:07:36 +00:00
Eli Zaretskii
c6094cae44 Undo some of the too aggressive tabification. 2002-03-27 16:32:15 +00:00
Eli Zaretskii
f5851398c7 Tabify everything. 2002-03-27 15:26:57 +00:00
Eli Zaretskii
e78e1cd172 (gud-jdb-sourcepath): New variable, saves jdb -sourcepath parameter value.
(gud-jdb-build-source-files-list): Comment clarification.
(gud-jdb-massage-args): Reworked into loop-based argument list
processing in order to support -classpath and -sourcepath argument processing.
(gud-jdb-find-source-using-classpath): Prepend gud-jdb-sourcepath
to gud-jdb-classpath to obtain search list.
(gud-jdb-parse-classpath-string): Remove any trailing slashes from
directory names in classpath/sourcepath lists, update comment.
(jdb): Add setting of gud-jdb-sourcepath, update comment.
(gud-find-class): Add gud-jdb-sourcepath use, and correct
behaviour for the case when classpath is not used--backward
compatibility fix.
2002-03-27 14:58:43 +00:00
Eli Zaretskii
7ff2460789 (gud-refresh): Call recenter only after we are sure we
are in the right window.
2002-02-05 18:05:32 +00:00
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