1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00
Commit Graph

2722 Commits

Author SHA1 Message Date
Nick Roberts
25c7f31583 (gdb-error-regexp, gdb-first-post-prompt)
(gdb-version): New variables.
(gdb-source-file-list, gdb-register-names)
(gdb-changed-registers): New variables for use with GDB 6.4+.
(gdb-ann3): Replace with...
(gdb-init-1, gdb-init-2): ...two new functions.
(gdba, gdb-prompt): Call gdb-init-1.
(gdb-get-version): New function.  Call gdb-init-2 from here.
(gud-watch): Make it work with mouse events too.
(gdb-post-prompt): Don't add to queue until GDB version is known.
(gdb-speedbar-expand-node, gdb-post-prompt, gdb-registers-mode)
(gdb-locals-mode): Use gdb-version.
(gdb-memory-format-map, gdb-memory-unit-map)
(gdb-locals-watch-map): Rename from gdb-*-*-keymap.
(gdb-locals-font-lock-keywords-1)
(gdb-locals-font-lock-keywords-2): New variables.
(gdb-find-file-hook): fgfg.
(gdb-set-gud-minor-mode-existing-buffers-1)
(gdb-var-list-children-1, gdb-var-list-children-handler-1)
(gdb-var-update-1, gdb-var-update-handler-1)
(gdb-data-list-register-values-handler)
(gdb-data-list-register-values-custom)
(gdb-get-changed-registers, gdb-get-changed-registers-handler)
(gdb-stack-list-locals-handler, gdb-get-register-names): New
functions for use with GDB 6.4+.
(gdb-locals-watch-map-1): New variable for use with GDB 6.4+.
(gdb-source-file-regexp, gdb-var-list-children-regexp-1)
(gdb-var-update-regexp-1, gdb-data-list-register-values-regexp)
(gdb-stack-list-locals-regexp)
(gdb-data-list-register-names-regexp): New regexps for use with
GDB 6.4+.
2005-12-06 21:42:54 +00:00
Stefan Monnier
6277435b76 (c-emacs-features): Don't assume point-min==1. 2005-12-06 16:54:20 +00:00
Nick Roberts
564b25a4e2 (gdb-var-create-handler)
(gdb-var-evaluate-expression-handler, gdb-frame-handler)
(gdb-var-list-children-handler, gdb-var-update-handler):
Current buffer is already gdb-partial-output-buffer, don't
make it current again.
2005-12-06 02:31:16 +00:00
Nick Roberts
67afa80d62 (gdb-use-inferior-io-buffer, gdb-speedbar-auto-raise):
Echo new state in minibuffer.
(gdb-var-create-handler, gdb-assembler-custom): Use search-forward
for plain strings.
(gdb-frames-mode): Remove redundant call to font-lock-mode.
(gdb-all-registers): Rename from toggle-gdb-all-registers.  Create
registers buffer if necessary.  Echo new state in minibuffer.
(gdb-registers-mode-map, gdb-registers-mode): Use gdb-all-registers.
2005-12-04 09:12:07 +00:00
Juri Linkov
0f01161d53 (idlwave-shell-electric-debug-mode):
Use define-minor-mode instead of easy-mmode-define-minor-mode.
2005-12-04 02:37:35 +00:00
Juri Linkov
e72b3747dc (global-cwarn-mode): Use define-global-minor-mode
instead of easy-mmode-define-global-mode.
2005-12-04 02:36:43 +00:00
Alan Mackenzie
6faed041c7 Relace a `mapcan' with an "apply (n-conc (mapcar ....... ))". 2005-12-03 11:04:17 +00:00
Alan Mackenzie
0386b551af Update CC Mode to release 5.31. 2005-12-02 12:30:36 +00:00
Nick Roberts
d60d4cd6ef (gud-menu-map): Put gud-finish back on the
tool bar (removed inadvertantly).
2005-12-02 09:15:56 +00:00
Nick Roberts
9f6efa0c78 (gdb-ann3): Bind mouse-2 to gdb-mouse-until in the margin also.
(gdb-breakpoints-mode-map): Use D instead of d for gdb-delete-breakpoint.
(gdb-get-frame-number): Require a number to match on.
(gdb-threads-mode-map): Add follow-link binding.
2005-12-01 02:17:15 +00:00
Nick Roberts
e83637f972 (gud-gdb-marker-filter): When GDB is invoked with a process number, detect it.
(gud-speedbar-buttons): Match regexp more carefully.
2005-11-27 22:17:29 +00:00
Nick Roberts
55cd42a4c1 (gdb-stopped): Detect process when attaching.
(gdb-pre-prompt): Make sure gdb-error is reset.
2005-11-27 22:16:02 +00:00
Stefan Monnier
ec121b9632 (sh-font-lock-syntactic-keywords): \ doesn't escape single quotes. 2005-11-27 20:44:44 +00:00
John Paul Wallington
940ed7e48b (gdb-edit-register-value): Use posn-set-point' instead of mouse-set-point'
because the latter is not fbound when configured without X.
2005-11-27 02:59:52 +00:00
Nick Roberts
53f18ed2c8 (gdb-goto-breakpoint, gdb-frames-select, gdb-threads-select):
Use `posn-set-point' instead of `mouse-set-point' because the
latter is not fbound when configured without X.
2005-11-27 01:17:47 +00:00
Eli Zaretskii
107dd21bca (inferior-octave-startup): Force a non-empty string for secondary prompt PS2. 2005-11-26 10:51:22 +00:00
Chong Yidong
49d11c492a * progmodes/compile.el (compilation-setup): Fix last fix. 2005-11-25 22:07:00 +00:00
Nick Roberts
be1c984450 (gdb-info-breakpoints-custom)
(gdb-mouse-toggle-breakpoint-margin)
(gdb-mouse-toggle-breakpoint-fringe, gdb-threads-select):
Add gdb-server-prefix to keep out of command history.
(gdb-edit-register-value): New function.
(gdb-registers-mode-map): Bind mouse-2 and RET to it.
(gdb-info-registers-custom): Use above map.
2005-11-25 21:34:03 +00:00
Chong Yidong
963b20402d * hi-lock.el (hi-lock-buffer-mode): Renamed from `hi-lock-mode'.
Use define-minor-mode, and make it a local mode.
	(hi-lock-mode): New global minor mode.
	(turn-on-hi-lock-if-enabled): New function.
	(hi-lock-line-face-buffer, hi-lock-face-buffer)
	(hi-lock-set-pattern): Changed arguments to regexp and face
	instead of a font-lock pattern.  Directly set face property,
	instead of refontifying.
	(hi-lock-font-lock-hook): Check if font-lock is being turned on.
	(hi-lock-find-patterns): Use line-number-at-pos.

	(hi-lock-face-phrase-buffer): Call hi-lock-buffer-mode.  Use new
	arguments for hi-lock-set-pattern.
	(hi-lock-find-file-hook, hi-lock-current-line)
	(hi-lock-set-patterns): Deleted unused functions.

	* progmodes/compile.el (compilation-setup): Don't fiddle with
	font-lock-defaults.
2005-11-24 20:52:16 +00:00
Nick Roberts
f3220d3a39 (gdb-var-create-handler, gdb-var-list-children-handler):
Find values for all variable objects.  gud-speedbar-buttons
decides whether to display them.
2005-11-24 20:45:50 +00:00
Nick Roberts
1e906233d4 (gud-speedbar-menu-items): Add gdb-speedbar-auto-raise as radio button.
(gud-speedbar-buttons): Raise speedbar if requested.
Don't match on "char **...".
(gud-speedbar-buttons): Add (pointer) value for non-leaves.
Make it editable.
2005-11-24 00:36:03 +00:00
Nick Roberts
66395e6be0 (gdb-speedbar-auto-raise): New function and variable.
(gdb-var-create-handler, gdb-var-list-children-handler):
Don't match on "char **...".
(gdb-var-update-handler): Find values for all variable objects.
(gdb-info-frames-custom): Identify frames by leading "#".
2005-11-24 00:34:59 +00:00
Nick Roberts
5fdd4cf709 (gdb-locals-watch-keymap): Add "\r" binding to local map. 2005-11-22 03:35:33 +00:00
Nick Roberts
e03a33ea48 (gdb-locals-watch-keymap): New local map.
(gdb-struct-string, gdb-array-string): New constants.
(gdb-info-locals-handler): Use them.
(gdb-reset): Reset gdb-var-list to nil.
2005-11-22 03:10:53 +00:00
Stefan Monnier
bd24684be0 (sh-font-lock-paren): Handle continued lines in patterns. 2005-11-21 22:24:13 +00:00
Nick Roberts
f1a5d0e203 (gud-install-speedbar-variables): Bind gud-pp to "p".
(gdb): Move definition of gud-pp to gdb-ui.el.
2005-11-18 02:48:58 +00:00
Nick Roberts
4130aa2c84 (gdb-ann3): Move definition of gud-pp to here.
Make it work in the speedbar.
(gdb-find-watch-expression): New function.
2005-11-18 02:47:21 +00:00
Juri Linkov
8ec3bce045 Add :link (custom-group-link font-lock-faces) to defgroup. 2005-11-17 07:40:11 +00:00
Nick Roberts
e930091eb3 (gud-speedbar-item-info): New function.
(gud-install-speedbar-variables): Use it to display data types
of watch expression as tooltips in speedbar.
2005-11-16 11:26:34 +00:00
Nick Roberts
0b4b288e4a (gud-stop-subjob): New function.
(gud-menu-map, gud-tool-bar-map): Use it.
2005-11-16 00:55:52 +00:00
Kim F. Storm
7b75b9937c (gud-menu-map): Let [stop] stop program rather than kill it.
(gud-tool-bar-map): Likewise.  Move cont/until/finish buttons
to a more useful/logical place.
2005-11-15 22:55:48 +00:00
Nick Roberts
3525a3ee84 (gud-menu-map): Make visibility of stop and
go buttons complementary.
2005-11-15 22:37:49 +00:00
Nick Roberts
8014739509 (gud-menu-map, gud-tool-bar-map): Re-define buttons and include new ones.
(gud-tool-bar-item-visible-no-fringe): New function.
(gud-menu-map): Use it.
2005-11-15 12:27:29 +00:00
Nick Roberts
ba5ff011a8 Remove face-alias left over from change on
2005-08-15.
(gdb-ann3): New command gud-go.
(menu): Accomodate gdb-mi.el.
(gdb-assembler-custom): Make buffer of selected window current
so that set-window-point works.
2005-11-15 12:25:49 +00:00
Nick Roberts
6d41699de0 (gud-menu-map): Move parentheses (again).
(gud-speedbar-buttons): Match on "const char *" too.
2005-11-13 09:03:36 +00:00
Nick Roberts
9e772f982c (gdb-var-create-handler, gdb-var-list-children-handler):
Match on "const char *" too.
(gdb-var-evaluate-expression-handler): Match on empty string.
(gdb-var-update-handler): Only call
gdb-var-evaluate-expression-handler when required.
2005-11-13 09:02:23 +00:00
Nick Roberts
007af086d0 (gud-menu-map): Revert to window-fringes for
selected window.  This still doesn't work for speedbar.
(gud-speedbar-buttons): Handle string expressions properly.
2005-11-12 21:26:55 +00:00
Nick Roberts
47b3cf39b4 (gdb-var-create-handler)
(gdb-var-evaluate-expression-handler): Handle strings properly.
(gdb-var-list-children-regexp, gdb-var-list-children-handler):
Handle strings properly.  Move "type" field into regexp.
2005-11-12 21:21:51 +00:00
Nick Roberts
a3caa4de72 (gud-menu-map): Move parentheses.
(gdb): New command gud-pv.
2005-11-10 19:25:59 +00:00
Nick Roberts
c69da4c77d (gdb): Make gud-pp use user-defined command pp1. 2005-11-09 20:39:06 +00:00
Nick Roberts
5ee476765c (gud-menu-map): Ensure tool-bar is constant when using the speedbar.
(gdb): New command gud-pp.
(gud-menu-map, gud-tool-bar-map): Put it on the tool bar.
2005-11-09 10:45:07 +00:00
Richard M. Stallman
8dfb3e1610 (compilation-internal-error-properties):
save-excursion around the computation of MARKER.
2005-11-07 00:49:17 +00:00
Nick Roberts
36188c5e3a (gdb-var-create-handler, gdb-var-delete)
(gdb-edit-value, gdb-speedbar-expand-node)
(gdb-get-create-buffer,  gdb-breakpoints-mode)
(gdb-toggle-breakpoint, gdb-delete-breakpoint)
(gdb-goto-breakpoint, gdb-frames-mode, gdb-registers-mode)
(gdb-locals-mode, gdb-find-file-hook): Use buffer-local-value.
(gdb-send-item, ): Use buffer-local-value and simplify.
2005-11-06 01:31:24 +00:00
Nick Roberts
6c8909e715 (gdb-buffer-type): Remove duplicate declaration.
(gdb-buffer-type): Make it automatically buffer local...
(gdb-get-create-buffer): ...and set it accordingly.
(gdb-frame-gdb-buffer, gdb-display-gdb-buffer): Make these
actually work.
2005-11-04 02:02:29 +00:00
Nick Roberts
bfd21f547c (gud-watch): Use save-selected-window in
case GUD buffer is not visible.
(gdb-goto-breakpoint): Try to force display in source buffer.
(gdb-frame-gdb-buffer): Copy other similar functions.
(gdb-restore-windows): Don't display source if not asked for.
(gdb-assembler-buffer-name): Don't capitalise.
2005-11-03 22:05:53 +00:00
Stefan Monnier
8b9e43d1ce (perl-font-lock-special-syntactic-constructs):
Rename from perl-font-lock-syntactic-face-function.
Change the calling convention so it can be used as a font-lock MATCHER.
Do the parse-partial-sexp loop outselves.
(perl-font-lock-syntactic-keywords): Use it.
(perl-mode): Don't set font-lock-syntactic-face-function any more.
2005-11-02 17:33:28 +00:00
Nick Roberts
4d7e274115 (gdb-mouse-until): Make it work in the disassembly buffer too.
(gdb-exited): Remove overlay arrows when execution has finished.
(gdb-info-frames-custom, gdb-info-threads-custom)
(gdb-info-registers-custom): Don't add inappropriate text
properties if inferior is not active.
2005-11-02 10:44:00 +00:00
Glenn Morris
7533f3b573 (fortran-blink-match): Use `blink-matching-delay'. 2005-11-02 08:30:45 +00:00
Glenn Morris
c046af9511 From John Mongan <jmongan@mccammon.ucsd.edu> (tiny change)
(f90-match-end): Use `blink-matching-delay'.
2005-11-02 08:30:25 +00:00
Masatake YAMATO
6f9a47abb5 (ld-script-builtins): Add more words: "DATA_SEGMENT_ALIGN",
"DATA_SEGMENT_END",  "DATA_SEGMENT_RELRO_END", "LENGTH", "ORIGIN",
and "SEGMENT_START".
(auto-mode-alist): Accept .ld, .lds, ld.in and .lds.in.
2005-11-01 15:45:32 +00:00