1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-11 16:40:45 -08:00
Commit graph

191 commits

Author SHA1 Message Date
Nick Roberts
e75116edb6 (gdb-signalled): New variable and function.
(gdb-debug-log-ring): Rename from gdb-debug-log and make a ring.
(gdb-send, gdb-send-item, gud-gdba-marker-filter): Use it.
(gdb-debug-log-length): Customize it's length.
(gud-watch, gdb-var-create-handler): Display function::var format
but don't use to create variable object.
(gdb-var-create-handler): Use message-box in place of message.
(gdb-stopped): Call gdb-exited if signalled.
2006-02-22 22:01:35 +00:00
Nick Roberts
958ac655e6 (gdb-speedbar-auto-raise): Don't enable by default. 2006-02-20 21:48:49 +00:00
Nick Roberts
ffb2cf00c2 (gdb-speedbar-expand-node): Force update of speedbar. 2006-02-20 00:03:15 +00:00
Nick Roberts
e5538a995c (gdb-force-update): Rename from gdb-var-changed.
(gdb-post-prompt): Use it.
(gdb-var-create-handler, gdb-var-evaluate-expression-handler)
(gdb-var-update-handler, gdb-var-delete)
(gdb-speedbar-expand-node, gdb-var-list-children-handler-1)
(gdb-var-update-handler-1): Don't set gdb-var-changed, just set
gdb-force-update in gdb-post-prompt.
(gdb-reset): Clear watch expressions from speedbar when quitting.
2006-02-19 05:21:50 +00:00
Nick Roberts
054d409eaf (gdb-var-evaluate-expression-handler)
(gdb-var-update-handler): Detect out of scope variables with pre
GDB 6.4 too.
(gdb-post-prompt): Revert changet 2006-02-17 (force update).
Reset status of variable objexts to nil in update handlers.
(gdb-var-update-handler-1): Detect when a variable object comes
in scope.  setcar on var changes gdb-var-list directly.
2006-02-18 22:58:26 +00:00
Nick Roberts
bbcc52157b (gdb-var-list): Update doc string.
(gdb-init-1, gdb-var-changed): Set gdb-var-changed to t initially.
(gdb-show-changed-values): Also use for out of scope variables.
(gdb-var-update-handler-1): Note if variable goes out of scope.
2006-02-17 11:51:38 +00:00
Nick Roberts
b32d1b9b01 (gdba, gdb-var-list): Improve doc strings.
(menu): Re-order menu items.
(gdb-var-update-regexp, gdb-var-update-regexp-1): Match "in_scope" field.
(gdb-var-update-handler-1): Use it for GDB 6.4+.
(gdb-post-prompt): Speed things by not forcing update.
2006-02-17 00:25:16 +00:00
Nick Roberts
b5c5d21640 (gdba): Improve doc string.
(menu): Re-order menu items.
2006-02-16 20:47:06 +00:00
Nick Roberts
cb851ef5d9 (gdb-display-separate-io-buffer): Change use of
gdb-use-inferior-io-buffer to gdb-use-separate-io-buffer
(missed in previous change).
2006-02-14 22:19:26 +00:00
Nick Roberts
b5e5e9f2a0 (gdb-use-separate-io-buffer)
(gdb-display-separate-io-buffer, gdb-frame-separate-io-buffer)
(gdb-separate-io-interrupt, gdb-separate-io-quit)
(gdb-separate-io-stop, gdb-separate-io-eof):
Rename from gdb-inferior-* to gdb-separate-*.
(gdb-set-gud-minor-mode-existing-buffers-1): Improve doc string.
2006-02-14 22:03:20 +00:00
Nick Roberts
621b3aac56 (gud-watch, gdb-invalidate-registers-1)
(gdb-get-changed-registers): Test value of gud-minor-mode relative
to gud-comint-buffer.
(gdb-speedbar-expand-node, gdb-locals-mode): Use functions in
gdb-ui.el for gdb-mi.el.
(gdb-post-prompt, gdb-get-changed-registers): Move test for
registers buffer to gdb-get-changed-registers.
(gdb-breakpoint-regexp): New regexp.  Allow toggling and
deletion of catchpoints (throw and catch).
(gdb-toggle-breakpoint, gdb-delete-breakpoint)
(gdb-goto-breakpoint): Use it for both gdb-ui and gdb-mi.
(gdb-find-file-hook, gdb-set-gud-minor-mode-existing-buffers-1)
(gdb-var-list-children-1, gdb-info-breakpoints-custom)
(gdb-var-update-1, gdb-invalidate-locals-1): Use also for gdb-mi.
2006-02-13 21:59:45 +00:00
Nick Roberts
d91362c9e0 Update copyright for 2006. 2006-02-10 09:00:31 +00:00
Nick Roberts
d47c318cc8 (gdb-post-prompt): Regenerate breakpoints
buffer if necessary.
(gdb-delete-frame-or-window): New function.
(gdb-breakpoints-mode-map): Bind "q" to it.
2006-02-07 06:57:27 +00:00
Nick Roberts
d0b9c14d9f (gdb-tooltip-print, gdb-tooltip-print-1):
Display name of expression instead of convenience variable.
(gdb-post-prompt): Only call gdb-get-changed-registers if needed.
2005-12-29 02:04:36 +00:00
Nick Roberts
c962897d11 (gdb-many-windows): Echo new state in minibuffer. 2005-12-15 21:21:43 +00:00
Nick Roberts
c05ba08101 (gdb-find-file-unhook): Delete variable.
(gdb-set-gud-minor-mode, gdb-set-gud-minor-mode): Delete functions.
(gdb-set-gud-minor-mode-existing-buffers, gdb-init-2): Use GDB
command "info sources".  Move calls to GDB command "list".
(gdb-find-file-hook): Just use gdb-source-file-list.
(gdb-source-file-regexp): Use regexp for pre-GDB 6.4.
(gdb-source-file-regexp-1): New regexp for GDB 6.4+ only.
(gdb-set-gud-minor-mode-existing-buffers-1): Use it.
(gdb-data-list-register-values-handler): Use correct trigger name.
2005-12-07 23:05:47 +00:00
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
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
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
55cd42a4c1 (gdb-stopped): Detect process when attaching.
(gdb-pre-prompt): Make sure gdb-error is reset.
2005-11-27 22:16:02 +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
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
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
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
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
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
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
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
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
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
Nick Roberts
671d498f2a (gdb-use-inferior-io-buffer): New function.
(menu, toggle-gdb-use-inferior-io-buffer): Get rid of defadvice.
(gdb-many-windows): Doc fix.
2005-10-31 21:13:15 +00:00
Nick Roberts
f99cf679b3 (gdb-many-windows): Leave window configuration
intact if there is no gud-comint-buffer.
2005-10-31 09:28:48 +00:00
Nick Roberts
7c8bd6a4a0 (gdb-tooltip-print-1): Fix regexp.
(gdb-registers-font-lock-keywords): Delete.
(gdb-registers-mode): Don't fontify.
(gdb-info-registers-custom): Use text properties instead as, in
future, changed register values will use font-lock-warning-face.
(gdb-local-font-lock-keywords): Rename to...
(gdb-locals-font-lock-keywords): ...for consistency.
2005-10-30 12:10:14 +00:00
Nick Roberts
9317517c79 (def-gdb-auto-updated-buffer)
(def-gdb-auto-update-trigger): Simplify construction.
(gdb-locals-buffer): Use def-gdb-auto-update-trigger instead of
def-gdb-auto-updated-buffer as gdb-info-locals-handler is
defined explicitly.
(gdb-assembler-buffer): Use def-gdb-auto-update-handler instead of
def-gdb-auto-updated-buffer as gdb-invalidate-assembler is
defined explicitly.
(gdb-info-locals-custom): Remove as it's a no-op.
2005-10-26 01:01:34 +00:00
Nick Roberts
dcc9160601 (gdb-mouse-until): New function.
(gdb-ann3): Bind it to mouse-2 and drag-mouse-1 in left fringe.
2005-10-25 02:30:39 +00:00
Nick Roberts
d12d5866fc (gdb-put-breakpoint-icon): Correct help-echo.
Display hand pointer and help-echo on disabled icon too.
2005-10-25 01:18:56 +00:00
Kim F. Storm
64ef03e90e (gdb-ann3): Bind mouse-3 in left fringe
to gdb-mouse-toggle-breakpoint-fringe.
(gdb-mouse-toggle-breakpoint-margin): Rename from
gdb-mouse-toggle-breakpoint. Fix doc.
(gdb-mouse-toggle-breakpoint-fringe): New defun.
(gdb-put-string): Add optional SPROPS arg.  Add props to string.
(gdb-put-breakpoint-icon): Add gdb-bptno and gdb-enabled
string properties also for fringe breakpoint bitmaps.
2005-10-24 22:06:47 +00:00
Nick Roberts
ea35bfd3bd (gdb-send): Bind inhibit-read-only to t
in case comint-prompt-read-only is set to t.
2005-10-24 08:54:18 +00:00
Nick Roberts
695bdd0107 (gdb-var-create-handler): Make watch
expressions display in speedbar for all buffers when debugging.
(gdb-speedbar-expand-node): Ensure node contraction is always
updated.
2005-10-17 21:09:38 +00:00
Nick Roberts
974be7ce98 (gdba): Improve diagram.
(def-gdb-auto-update-handler, gdb-info-locals-handler)
(gdb-put-breakpoint-icon, gdb-remove-breakpoint-icons): Call
get-buffer-window once.
2005-10-10 12:26:05 +00:00
Nick Roberts
6bef9fd7e9 (gdb-fringe-width -> gdb-buffer-fringe-width):
Typo.
2005-10-07 02:46:50 +00:00
Juanma Barranquero
8dc8d89594 (gdb-buffer-fringe-width): Add defvar. 2005-10-06 09:25:12 +00:00
Nick Roberts
475a41c957 (gdb-fringe-width): New variable.
(gdb-ann3): Set it.
(gdb-put-breakpoint-icon): Don't take fringe-width from speedbar
frame.
(gdb-info-frames-custom): Use inverse-video for first five
characters of selected frame only.
(gdb-get-frame-number): Select frame even when point is on frame
number.
2005-10-06 06:06:55 +00:00
Nick Roberts
6a8a087a3c (gdb-fringe-width): New variable.
(gdb-ann3): Set it.
(gdb-put-breakpoint-icon): Don't take fringe-width from speedbar
frame.
2005-10-06 03:42:24 +00:00