Commit graph

205 commits

Author SHA1 Message Date
Nick Roberts
20864cf0aa (gdb-mouse-until, gdb-mouse-jump):
Correct doc strings.
2007-02-28 21:15:13 +00:00
Nick Roberts
f7ddc2ce5a (gdb-if-arrow): New macro.
(gdb-mouse-until, gdb-mouse-jump): Use it.
2007-02-07 21:57:04 +00:00
Nick Roberts
45ab7a6632 (gdb-mouse-until, gdb-mouse-jump): Make them
work when there is just an assembler buffer (no source buffer).
2007-02-07 21:12:52 +00:00
Nick Roberts
d4a574c075 (gdb-frames-mode): Truncate lines in stack
buffer.
2007-02-06 03:40:33 +00:00
Nick Roberts
b41a756946 (gdb-speedbar-update): Avoid duplication
when adding gdb-speedbar-update to gdb-input-queue.
2007-02-01 08:42:47 +00:00
Nick Roberts
01b8fc600a (gdb-var-delete-1): New function.
(gdb-var-delete): Use it.
(gdb-var-update-handler-1): Handle value "invalid" for MI field
`in_scope'.
2007-01-30 22:07:12 +00:00
Nick Roberts
5754d11f61 (gdb-breakpoint-regexp): Declare earlier to
avoid compiler warning.
(gdb-var-update-handler-1): Consider that the MI field `in_scope'
might have values other than "true" or "false".
2007-01-28 09:42:23 +00:00
Nick Roberts
b35ef705cd (gdb-var-create-regexp)
(gdb-var-create-handler): Handle value field in GDB output of
-var-create.
(gdb-max-frames): New variable.
(gdb-stack-buffer, gdb-frames-select): Use it.
(gdb-info-stack-custom): Help user customize gdb-max-frames,
if necessary.
(gdb-get-frame-number): Simplify.
2007-01-21 21:03:40 +00:00
Nick Roberts
0ebd837a75 (gdb-var-create-regexp)
(gdb-var-create-handler): Handle value field in GDB output of
-var-create.
(gdb-max-frames): New variable.
(gdb-stack-buffer, gdb-frames-select): Use it.
(gdb-info-stack-custom): Help user customize gdb-max-frames,
if necessary.
(gdb-get-frame-number): Simplify.
2007-01-21 10:49:42 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Nick Roberts
e1204172ce (gdb-max-children): New customizable variable.
(gdb-speedbar-expand-node): Ask user for confirmation before expanding
large structures/arrays.
2007-01-05 04:20:20 +00:00
Nick Roberts
6c8aa2cd79 (gud-watch): Allow duplicate names for watch
expressions.
(gdb-var-delete): Handle duplicate names.  Print message for non
root expressions.
(gdb-partial-output-name): Start buffer name with a space.
(gdb-info-breakpoints-custom, gdb-reset): Handle space in above
buffer name.
2006-12-26 22:02:17 +00:00
Nick Roberts
82bc67b8b2 (gdb-stopped): After attaching to a process
make gud-go send "continue".
2006-12-20 05:16:36 +00:00
Nick Roberts
9106c6aebe (gdb-var-delete-children): New function.
(gdb-speedbar-expand-node): Use it.
2006-12-04 03:26:44 +00:00
Nick Roberts
ae4c58a755 (gdb-many-windows): Start doc string
with a capital.
2006-11-10 09:38:11 +00:00
Glenn Morris
958cdec20f (gdb-many-windows): Doc fix (Nil -> nil). 2006-11-10 09:12:16 +00:00
Nick Roberts
eb036ad0e2 (gdb-info-stack-custom): Don't try to give
gdb-stack-position a value when there is no fringe.
2006-10-22 05:40:08 +00:00
Nick Roberts
02974d02ac (gdb-speedbar-expand-node): Burp if
GUD buffer has been killed.
2006-10-07 23:37:20 +00:00
Nick Roberts
8687849bab (gdb-var-list-children-regexp)
(gdb-var-list-children-regexp-1): Tweak regexps to catch full
string values.
2006-09-06 02:45:03 +00:00
Nick Roberts
ce22ee0163 (gdb-var-list-children-regexp)
(gdb-var-list-children-regexp): Make type field optional.
2006-09-05 03:41:24 +00:00
Nick Roberts
31af85eb57 (gdb-starting): Reset gdb-signalled to nil. 2006-08-23 03:10:02 +00:00
Nick Roberts
b2f5a4ac93 (gdb-frame-memory-buffer): Make frame
a bit wider and remove fringes to fit initial output on line.
2006-08-21 23:06:09 +00:00
Romain Francoise
bfe0c147d5 (gdb-edit-locals-value): Balance parens. 2006-08-17 17:56:57 +00:00
Nick Roberts
38a52690e0 (gdb-locals-watch-map, gdb-locals-watch-map-1): Suppress keymap first.
(gdb-edit-locals-map-1): New variable.
(gdb-edit-locals-value): New function.
(gdb-stack-list-locals-handler): Use them.
2006-08-17 11:44:40 +00:00
Nick Roberts
9143202cb6 (gdb-info-stack-custom): Indicate selected frame with fringe arrow.
Suggested by Simon Marshall <simon.marshall@misys.com>.
(gdb-stack-position): New variable.
(gdb-starting, gdb-exited): Reset gdb-stack-position to nil.
(gdb-frames-mode): Set gdb-stack-position to nil.  Add to
overlay-arrow-variable-list
(gdb-reset): Delete gdb-stack-position from above list.
2006-08-15 00:01:16 +00:00
Nick Roberts
7443a63845 (gdb-frame-separate-io-buffer)
(gdb-use-separate-io-buffer, menu): Avoid using `inferior' in text.
(gdb-memory-mode, gdb-locals-watch-map): Don't quote lambda
expressions.
(gdb-info-breakpoints-custom): Use gdb-breakpoint-regexp.
Only search till end of line.
Add face to function names in case of no filename.
Add face to variable names of watchpoints.
2006-08-13 01:09:11 +00:00
Nick Roberts
a6c7c026a4 (gdb-find-source-frame): Make nil the default value.
(gdb-find-source-frame): New function.
(menu): Add to menu bar.
2006-08-01 23:16:00 +00:00
Nick Roberts
c534076ccd (gdb-set-hollow): Check for gud-last-last-frame. 2006-08-01 02:49:47 +00:00
Nick Roberts
2b63aedbe1 (gdb-find-source-frame): New option.
(gdb-stopped): Use it.
2006-07-31 06:13:18 +00:00
Nick Roberts
a9502111b2 (gdb-info-breakpoints-custom): Use different faces for enable character. 2006-07-28 12:11:09 +00:00
Nick Roberts
303b246dbe (gdb-set-gud-minor-mode-existing-buffers)
(gdb-resync, gdb-prompt, gdb-starting, gdb-exited, gdb-stopped)
(gdb-set-gud-minor-mode-existing-buffers-1): Use different faces
for status indicator.
2006-07-25 05:18:11 +00:00
Nick Roberts
d138996e00 (gdb-display-buffer): Check for gdb-source-window. Add dedicated argument.
(gdb-display-separate-io-buffer, gdb-append-to-inferior-io)
(gdb-display-breakpoints-buffer, gdb-display-stack-buffer)
(gdb-display-threads-buffer, gdb-display-memory-buffer)
(gdb-display-locals-buffer): Use it.
2006-07-13 21:56:26 +00:00
Nick Roberts
3cfc0f435d (gdb-exited): Ensure overlay arrow gets killed.
(gdb-frame-handler): Generalise frame regexp for templates.
2006-06-20 22:35:19 +00:00
Nick Roberts
3e0b9c08a0 (gdb-same-frame): New option.
(gud-old-arrow, gdb-frame-begin, gdb-printing): New variables.
(gdb-init-1): Initialise them.
(gdb-starting): Reset gdb-printing
(gdb-starting): Save value of gud-overlay-arrow-position.
(gdb-frame-begin): Set gdb-frame-begin, gdb-printing.
(gdb-stopped): Don't look for source if calling procedure e.g "p a ()".
Use gdb-*-gdb-buffer conditionally on gdb-same-frame.
(gdb-frame-gdb-buffer): Keep menu bar, tool bar for GUD buffer.
2006-06-15 00:57:53 +00:00
Nick Roberts
41c8cdc3b0 (gdb-set-gud-minor-mode-existing-buffers-1)
(gdb-prompt, gdb-set-gud-minor-mode-existing-buffers): Show status
in mode line at startup.
2006-06-08 12:15:27 +00:00
Nick Roberts
c1719ebfb3 (gdb-look-up-stack): New variable.
(gdb-stopped, gdb-info-stack-custom): If there is no source info
look up the stack and pop up GUD buffer if necessary.
(gdb-frames-select): Remove redundant call to gud-display-frame.
(gdb-info-threads-custom): Keep point at start of buffer.
(gdb-find-file-hook): Make it work for pre-GDB 6.4.
2006-05-31 13:21:39 +00:00
Nick Roberts
8a464f1b54 Move gdb-mouse-toggle-breakpoint-* to
C-mouse-1.  Move gdb-mouse-until to mouse-3, gdb-mouse-jump
to C-mouse-3 (for 2 button mice).
(gdb-send): Do the right thing for C-d.
2006-05-30 08:07:44 +00:00
Nick Roberts
d22b968f75 (gdb-reset): Update speedbar if necessary.
(gdb-var-evaluate-expression-handler, gdb-var-update-handler):
Use a token for pending-triggers to ensure gdb-var-update
gets called once per user input again for pre-GDB 6.4.
(gdb-var-delete): Match on more complex expressions.
(gdb-var-list-children-handler, gdb-var-create-handler):
Use a token for consistency.
2006-05-11 10:08:03 +00:00
Nick Roberts
51158d6985 (gdb-var-create-handler): Move speedbar
call to...
(gud-watch): ...here so speedbar is raised for already watched
expressions.
(gdb-speedbar-refresh): Delete function.
(gdb-speedbar-update, gdb-speedbar-timer-fn): New functions.
Use speedbar-timer-fn instead of speedbar-refresh (reverting
earlier change).
(gdb-var-evaluate-expression-handler)
(gdb-var-list-children-handler-1, gdb-var-update-handler-1):
Use it.
2006-05-07 12:08:23 +00:00
Nick Roberts
0745bc2e98 (gdb-goto-breakpoint): Use or instead of unless so nil isn't returned.
(gdb-setup-windows, gdb-restore-windows): Reset gdb-source-window.
2006-05-06 00:34:11 +00:00
Nick Roberts
6f09505599 (gdb-force-update): Delete variable...
(gdb-init-1, gdb-post-prompt): ...and references to it.
(gdb-frame-handler): Strip directory name from filename if present.
2006-05-04 05:16:46 +00:00
Nick Roberts
9d6bb9e0af (gud-watch): Let user select an expression.
(menu): Fix typo.
2006-05-03 00:17:35 +00:00
Nick Roberts
eff8536f40 (gdb-data-list-register-values-handler):
Use font-lock-warning-face for any errors e.g. no stack.
(gdb-stack-list-locals-handler): Display any errors e.g. no stack.
2006-04-20 22:57:03 +00:00
Nick Roberts
ec180a2625 (gdb-pc-address): Rename from gdb-frame-address.
(gdb-frame-address): Re-use to identify frame for watch expression.
(gdb-var-list, gdb-var-create-handler): Add frame address for root
variables.
(gdb-init-1, gdb-source, gdb-post-prompt, )
(gdb-assembler-custom, gdb-invalidate-assembler): Use gdb-pc-address.
(gdb-frame-handler): Get gdb-frame-address.
2006-04-17 19:48:50 +00:00
Nick Roberts
12c83f528c (gdb-set-gud-minor-mode-existing-buffers):
GDB 6.1+ gives full filename for "info sources" so use
file-name-nondirectory.
2006-04-13 01:38:24 +00:00
Nick Roberts
caf2f94459 (gdb-init-1): Re-initialise gdb-main-file to nil.
(gdb-get-version): Make it work for pre "interpreter mi" (GDB 5.3?).
(gdb-setup-windows): Put something in source window if we can't find
the source file.
(gdb-frame-handler): Make it work again with just assembly.
(gdb-data-list-register-values-handler): Make it work when there is
no stack.
2006-04-10 09:18:11 +00:00
Nick Roberts
4d91dd05aa (gdb-init-2): Set current filename using
GDB list command without argument for greater generality.
2006-04-07 11:20:39 +00:00
Nick Roberts
b19f320523 (gdba): Revert 2006-03-10 change for case of "run" in .gdbinit.
(gdb-var-create-regexp): Remove "^done" prefix for gdb-mi.el.
2006-03-25 00:09:15 +00:00
Nick Roberts
8928c512e4 (gdb-var-create-regexp)
(gdb-var-list-children-regexp, gdb-var-update-regexp)
(gdb-var-list-children-regexp-1, gdb-var-update-regexp-1)
(gdb-data-list-register-values-regexp)
(gdb-stack-list-locals-regexp, gdb-stack-list-locals-handler):
Future proof against new fields being added to MI output.
(gdb-send): Don't treat backslashes for program input as
continuations.
(gdb-assembler-handler): Don't use window-start for this handler.
(gdb-frame-handler): Don't change to hollow arrow if overlay
arrow doesn't move to new frame.
2006-03-24 12:38:31 +00:00
Nick Roberts
201f5b5f6a (gdb-continuation): Declare earlier to prevent compiler warnings.
(gdb-stopped): Check for gud-last-last-frame (case: signal).
(breakpoint-disabled): Make lighter for contrast with overlay
arrow.
(gdb-assembler-custom): Use hollow-right-triangle for assembler
buffer too.
2006-03-23 23:52:11 +00:00