Commit graph

261 commits

Author SHA1 Message Date
Miles Bader
e983096bb6 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1132
2008-04-29 01:03:43 +00:00
Nick Roberts
72ba4f36c6 (gdb-info-stack-custom): Use
gud-tool-bar-item-visible-no-fringe.
(gdb-display-buffer): Don't pop new buffer if gud-comint-buffer
is already visible in frame.  Remove optional size parameter
and add optional frame parameter.
2008-04-29 00:41:23 +00:00
Nick Roberts
05a27ce5cc (gdb-info-breakpoints-custom): Fix mismatched parentheses. 2008-04-28 07:18:03 +00:00
Nick Roberts
841b19a0a0 (gdb-info-breakpoints-custom): Make breakpoint
icons work for assembler, i.e. FILE.s, FILE.S (not disassembly).
(gdb-goto-breakpoint): Likewise for visiting breakpoints.
(gdb-assembler-custom): Be careful not to match other addresses.
2008-04-28 03:24:43 +00:00
Nick Roberts
34fb82b8da (gud-watch): Don't create speedbar...
(gdb-var-create-handler): ...until here when there are values.
(gdb-post-prompt): Don't do -var-update with no watch expressions.
(gdb-info-locals-handler): Don't match "struct {...}" as an array.
2008-04-25 10:59:20 +00:00
Nick Roberts
5a1ad629fb (gdb-invalidate-assembler): Compare numeric
value of addresses rather than (partial) string value.
(gdb-frame-handler): Change regexp according to above change.
(gdb-breakpoints-mode, gdb-frames-mode, gdb-threads-mode)
(gdb-registers-mode, gdb-memory-mode, gdb-locals-mode)
(gdb-assembler-mode): Disable undo in these buffers.
2008-04-24 22:35:08 +00:00
Nick Roberts
3ed96733c6 (gdb-invalidate-assembler): Compare numeric
value of addresses rather than (partial) string value.
(gdb-frame-handler): Change regexp according to above change.
2008-04-24 22:26:38 +00:00
Miles Bader
a113b3ca32 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1121
2008-04-23 05:55:42 +00:00
Nick Roberts
7446b6573e (gdb-previous-frame-address): Rename...
(gdb-previous-frame-pc-address): ...to this.
(gdb-get-selected-frame): Use MI command -stack-info-frame instead
of "info frame" with Gdb 6.4+.
(gdb-stack-list-frames-regexp): New regexp.
(gdb-frame-handler-1): Parse output of -stack-info-frame
2008-04-23 02:50:24 +00:00
Nick Roberts
01a369030e (gud-watch): Add "$" prefix when in registers buffer. 2008-04-22 06:25:15 +00:00
Nick Roberts
4eb1954463 (gdb-locals-header): New variable.
(gdb-locals-mode, gdb-registers-mode): Use it for header line.
2008-04-22 05:57:37 +00:00
Glenn Morris
b218f37130 (gdbmi-invalidate-frames): Declare as function. 2008-04-22 02:57:26 +00:00
Nick Roberts
b06e477e59 (gdb-mouse-set-clear-breakpoint): Select
window clicked on first (regression in 22.2).
(gdb): Display thread number in mode-line.
(gdb-make-header-line-mouse-map): Move to avoid byte compiler warnings.
(gdb-breakpoints-header): New variable.
(gdb-breakpoints-mode, gdb-threads-mode): Use it for header line.
2008-04-19 22:49:32 +00:00
Nick Roberts
59ae30492b (gdb-thread-indicator): New variable.
(gdb-init-1): Initialise it.
(gdb-annotation-rules): New entry for "new-thread".
(gdb-thread-identification): New function to customize
mode-line-buffer-identification.
(gdb-frames-mode, gdb-registers-mode, gdb-locals-mode)
(gdb-assembler-mode): Use it.
(gdb-threads-mode): Force "info threads" onto queue.
2008-04-19 06:41:23 +00:00
Nick Roberts
551b23f38c (gdb-stack-update): New variable.
(gdb, gdb-starting, gdb-frames-mode): Use it.
(gdb-invalidate-frames): Advise to call "info stack" only if
execution has occurred.
(gdb-info-breakpoints-custom): Only update overlay-arrow pointing to
selected frame if no execution has occurred.
(gdb-frames-force-update): New interactive function.
(gdb-frames-mode-map): Bind it to "F".
2008-04-17 05:12:42 +00:00
Nick Roberts
aa72bfb256 (gdb-find-source-frame): Improve doc string.
(menu): Add/expand menu tooltips.
2008-04-12 21:57:58 +00:00
Nick Roberts
6c6273c6a5 (gdb-init-buffer): New function.
(gdb-set-gud-minor-mode-existing-buffers)
(gdb-info-breakpoints-custom, gdb-get-location)
(gdb-set-gud-minor-mode-existing-buffers-1): Use it.
Previously gdb-create-define-alist wasn't always run and added to
after-save-hook.
2008-04-12 13:13:32 +00:00
Nick Roberts
86af339a9b (gdb): New group.
(gdb-debug-log-max, gdb-enable-debug)
(gdb-cpp-define-alist-program, gdb-cpp-define-alist-flags)
(gdb-show-main, gdb-many-windows, gdb-use-separate-io-buffer)
(gdb-speedbar-auto-raise, gdb-use-colon-colon-notation)
(gdb-show-changed-values, gdb-max-children)
(gdb-delete-out-of-scope, gdb-same-frame, gdb-find-source-frame)
(breakpoint-enabled, breakpoint-disabled, gdb-max-frames)
(gdb-all-registers, gdb-memory-repeat-count, gdb-memory-format)
(gdb-memory-unit): Move to new group from GUD group.
(menu): Allow customization from GDB-UI menu-item.
2008-04-06 03:32:45 +00:00
Miles Bader
5bc6ddff00 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1107
2008-04-05 23:01:26 +00:00
Nick Roberts
79669f88b4 (gdb-mouse-set-clear-breakpoint):
Fix in disassembly buffer (regression in 22.2).
2008-04-03 21:34:56 +00:00
Nick Roberts
f1febefae4 (gdb-mouse-set-clear-breakpoint):
Fix in disassembly buffer (regression in 22.2).
2008-04-03 08:38:51 +00:00
Nick Roberts
1109332fdf Add advice about using Cygwin GDB (from a
thread in [h-e-w]).
2008-03-10 22:43:56 +00:00
Miles Bader
51fb064bc7 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1090
2008-03-01 01:28:31 +00:00
Nick Roberts
707ae15225 (gdb-info-stack-custom): Apply
function-name-face correctly when user has
"set print address off".
2008-02-29 00:47:13 +00:00
Juanma Barranquero
55222dc896 (gdb-pc-address, gdb-source-file-list, gdb-cpp-define-alist-program,
gdb-mouse-jump, gdb-get-buffer-create, gdb-debug-log,
gdb-set-gud-minor-mode-existing-buffers-1): Fix typos in docstrings.
(gdb-pending-triggers): Reflow docstring.
(gdb, gdb-init-1): Fix typos in docstrings of gud-def definitions.
2008-02-26 02:03:11 +00:00
Miles Bader
b03f96dc5a Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1074
2008-02-24 10:09:07 +00:00
Nick Roberts
a03392ff83 (gdb-mouse-set-clear-breakpoint): Fall back
to mouse-set-point in buffers that aren't associated with files.
2008-02-20 19:57:10 +00:00
Nick Roberts
27acfab31e (gdba): Recreate as an alias for gdb.
(gdb): (Re)set gdb-flush-pending-output to nil here...
(gdb-init-1): ...instead of here (before gdb-prompt).
2008-02-19 09:50:24 +00:00
Stefan Monnier
57e828aed9 (gdb-output-sink): Define with an invalid value.
(gdb): Initialize it here instead.
2008-02-19 04:30:50 +00:00
Nick Roberts
ef6cb9e834 (gdb-ready): Move declaration from gud.el to here.
(gdb-early-user-input): New variable.
(gdb): Reset gdb-flush-pending-output to nil and set
comint-input-sender here (before gdb-prompt), instead of...
(gdb-init-1): ...here.
(gdb-send): If Emacs is not ready, defer user input to...
(gdb-prompt): ...here.
2008-02-16 06:45:07 +00:00
Miles Bader
94cc397c54 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1028
2008-01-31 11:35:46 +00:00
Nick Roberts
473a20b83e (gdb-var-set-format-regexp): New constant.
(gdb-var-set-format-handler): New function.
(gdb-var-set-format): Use it.
2008-01-30 22:07:41 +00:00
Miles Bader
8dd59f01de Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1021
2008-01-29 06:54:30 +00:00
Nick Roberts
f43ad7374f (gdb-create-define-alist): Don't call
gdb-cpp-define-alist-program if file is nil (currently only
" *partial-output-...").
2008-01-27 20:53:02 +00:00
Miles Bader
1bad168e59 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1006
2008-01-22 23:53:46 +00:00
Nick Roberts
78971dff70 (gdb-dequeue-input): Make doubly sure
session doesn't hang because gdb-pending-triggers is non-nil.
(gdb-frame-handler): Use buffer-file-name instead of
buffer-name in case of duplicate file names.
2008-01-10 10:27:02 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Nick Roberts
bc676c5840 (gdb-var-list-children-1): Put varnum in
quotes in case of spaces, e.g. STL containers (not pretty).
2008-01-08 01:59:29 +00:00
Nick Roberts
6e498a9766 (gud-gdb-command-name): Explain
"--annotate=3" option is necessary for the Graphical Interface.
2008-01-07 03:51:03 +00:00
Glenn Morris
4e643dd23c Add 2008 to copyright years. 2008-01-07 02:11:00 +00:00
Nick Roberts
b3dac3299c (gdb-var-set-format): Set the output format
of watch expressions (only works fully with GDB 6.7 or later).
2008-01-03 21:58:33 +00:00
Glenn Morris
3092d1fbdb (gud-remove, gud-break): Declare as functions. 2007-12-01 02:34:09 +00:00
Nick Roberts
cc6546c9c7 Update commentary. 2007-11-19 07:34:18 +00:00
Nick Roberts
1030a7b3f8 Update commentary. 2007-11-19 07:26:01 +00:00
Nick Roberts
d4b9f75c42 (gdb-parent-bptno-enabled): New variable.
(gdb-breakpoint-regexp, gdb-mouse-toggle-breakpoint-margin)
(gdb-mouse-toggle-breakpoint-fringe, gdb-delete-breakpoint)
(gdb-goto-breakpoint): Generalise for breakpoints with multiple
locations.
(gdb-info-breakpoints-custom, gdb-assembler-custom)
(gdb-toggle-breakpoint): Update for new gdb-breakpoint-regexp.
(gdb-put-breakpoint-icon): Only display icon for parent breakpoint.
2007-11-14 09:05:26 +00:00
Nick Roberts
266e779b86 (gdb-parent-bptno-enabled): New variable.
(gdb-breakpoint-regexp, gdb-mouse-toggle-breakpoint-margin)
(gdb-mouse-toggle-breakpoint-fringe, gdb-delete-breakpoint)
(gdb-goto-breakpoint): Generalise for breakpoints with multiple
locations.
(gdb-info-breakpoints-custom, gdb-assembler-custom)
(gdb-toggle-breakpoint): Update for new gdb-breakpoint-regexp.
(gdb-put-breakpoint-icon): Only display icon for parent breakpoint.
2007-11-14 08:59:16 +00:00
Nick Roberts
f8fef1ceba (gdb-delete-out-of-scope): New option.
(gdb-var-update-handler-1): Use it.
2007-10-30 05:37:34 +00:00
Nick Roberts
31c4b81d81 (gdb-info-stack-custom): Ensure current frame is visible. 2007-10-11 04:23:29 +00:00
Nick Roberts
4d4cc7800d (gud-gdb-command-name, gdb): Move here from gud.el and adapt doc string.
(gud-gdba-command-name, gdba): Delete.
2007-10-04 07:44:28 +00:00
Nick Roberts
89525f8b2b (gdb-init-1): Don't set the values
gud-minor-mode and gud-marker-filter.
(gdb-fullname-regexp): New variable.
(gud-gdba-marker-filter): Use it to switch to text command
mode if appropriate.
2007-10-02 10:57:03 +00:00