Commit graph

274 commits

Author SHA1 Message Date
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Nick Roberts
cf7238adf9 (gdb-create-define-alist): Don't create a
list of #defines for remote files.
(gdb-source-info): Only show main if it has been found.
2008-07-16 23:02:52 +00:00
Nick Roberts
95741663a9 (gdb-display-buffer): Don't split a buffer
if it's not part of gdb-ui, e.g, at start.
2008-07-05 09:35:01 +00:00
Nick Roberts
959005e4db (gdb-create-source-file-list): New option.
(gdb-init-2): Use it.  Don't run gdb-mode-hook again.
(gdb-var-list-children-regexp, gdb-var-update-regexp)
(gdb-info-breakpoints-custom, gdb-stack-list-frames-regexp)
(gdb-var-list-children-regexp-1, gdb-var-update-regexp-1)
(gdb-stack-list-locals-regexp): Future proof regexps better.
2008-07-01 01:57:50 +00:00
Nick Roberts
14b26c3304 (gud-gdba-marker-filter): Don't switch to
text command mode.
(gdb): Explain that gud-gdb is needed for text command mode.
2008-06-17 22:09:40 +00:00
Nick Roberts
d91e2cb64e (gdb-memory-set-address)
(gdb-memory-set-repeat-count): Allow keyboard bindings.
(gdb-memory-mode-map): Bind above functions respectively
to 'S' and 'N'.
2008-06-16 11:26:22 +00:00
Glenn Morris
aa360da10d Add some compiler declarations, for builds without X. 2008-06-12 03:56:20 +00:00
Nick Roberts
22b6cf4846 (gdb-enable-debug): New function.
(gdb-annotation-rules): New entry for "thread-changed".
(gdb-thread-changed): New function.
2008-05-23 07:36:54 +00:00
Glenn Morris
b1fc2b5014 Switch to recommended form of GPLv3 permissions notice. 2008-05-06 07:25:26 +00:00
Miles Bader
bfab7c6ec7 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1139
2008-05-02 12:43:30 +00:00
Nick Roberts
d5ec6bc04f (gdb-info-breakpoints-custom): Don't throw error if no file is found. 2008-05-01 08:43:56 +00:00
Nick Roberts
37c7234307 (gdb-frame-handler-1): Make overlay arrow
hollow if not in innermost frame.
2008-04-30 02:27:52 +00:00
Nick Roberts
05dfe89a80 (gdb-display-buffer): Don't pop up GUD buffer.
Always split windows.
(gdb-speedbar-timer-fn): Only raise frame after user input.
(gdb-same-frame): Reverse initial value.
(gdb-display-gdb-buffer): Check for GUD buffer in other frames.
2008-04-29 11:02:22 +00:00
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