Commit graph

43 commits

Author SHA1 Message Date
Nick Roberts
d947239b9d (gud-display1): Use gud-call to prevent extra prompt
being displayed in GUD buffer.
(gdb-idle-input-queue): Remove var. Use just one queue.
(gdb-enqueue-idle-input,gdb-dequeue-idle-input): Remove
functions. Use just one queue.
(gdb-prompt, gdb-subprompt, def-gdb-auto-update-trigger)
(gdb-invalidate-assembler, gdb-get-current-frame): Modify
functions. Use just one queue.
2003-09-04 22:34:47 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Nick Roberts
32d369ac52 (gdba): Remove gdb-quit (previously removed) from
documentation.
(gdb-source, gdb-source-info): Update to assembler unnecessary
as its done after each GDB command anyway.
(gdb-pre-prompt): Use with-current-buffer.
(gdb-insert-field): Add help-echo text.
(gdb-invalidate-assembler): Re-display of assembler now done in
gdb-info-breakpoints-custom.
(gdb-info-breakpoints-custom): Force re-display of assembler to
happen *after* update of breakpoints buffer.
(gdb-display-source-buffer): Don't choke if gdb-source-window
isn't visible.
(gdb-put-string, gdb-put-arrow): Remove free variables.
2003-08-24 20:40:03 +00:00
Nick Roberts
2ff0458dd0 (gdb-insert-field, gdb-array-format1)
(gdb-info-breakpoints-custom, gdb-info-frames-custom)
(gdb-info-threads-custom): Add help-echo text.
(gdb-display-back): Don't use purecopy.
(gdb-info-breakpoints-custom, gdb-reset)
(gdb-assembler-custom): Use display-images-p to test if breakpoint
icons can be displayed.
2003-08-11 21:55:20 +00:00
Nick Roberts
28f0163309 (gdb-setup-windows, gdb-restore-windows): Restore
assembler in source window if that is what has been selected.
(menu): Add gdb-restore-windows to menu. Make gdba
specific menus only visible from gdba.
2003-07-28 19:49:30 +00:00
Nick Roberts
7a7b20311c (gdb-source-info): Display current frame when
attaching to an existing process.
(gdb-setup-windows, gdb-source-info): Start with gud-comint-buffer
while laying out windows when attaching to an existing process.
2003-07-07 18:53:42 +00:00
Nick Roberts
87cae4751a (gdb-display-number-end): Don't re-initialise local
variables to preserve array slices.
(gdb-array-slice): Rename gdb-mouse-array-slice.
(gdb-array-slice): Interactive function bound to "\r" for text
terminals.
(gdb-view-source): Rename gdb-view-source-function.
Set uninitialised variables (defvars) to nil.
2003-06-29 13:52:50 +00:00
Nick Roberts
8a3b93ee30 (gud-display1): Keep the gdb command, "display", in
the command history.
(gdb-restore-windows): Make restore work when gdb-many-windows
is nil.
(gdb-source-info, gdba): Display assembler if there is no symbol
table for main, or message if there is no main.
(gdb-assembler-custom): Move point to current line of assembler.
2003-06-18 22:37:40 +00:00
Nick Roberts
280645b30c (gdb-get-current-frame, gdb-frame-handler): Use Gdb
command `info frame' instead of `frame' to preserve point.
(gdb-invalidate-assembler): Only run disassemble again if frame
has changed.
(gdb-append-to-inferior-io): Revert change from 2003-05-17.
2003-06-08 01:20:51 +00:00
Nick Roberts
eef0be881a (gdb-info-breakpoints-custom, gdb-assembler-custom):
Put string associated with breakpoint at start of line so that it
is always visible.
(gdb-display-source-buffer): Display assembler during execution,
when requested.
(gud-menu-map): Add a toggle button to menubar for
gdb-many-windows.
(gdb-many-windows): Define explicitly as a function and a variable
(formerly as a minor mode). These need to be global so layout can
be reset from any buffer.
(gdb-assembler-mode): Keep fringe outside margin as the overlay
arrow is not used for assembler.
2003-05-25 16:51:34 +00:00
Nick Roberts
6d7cff7217 (gdba): Accommodate Fortran programs.
(gud-gdba-command-name): Use -noasync in all cases (as Fortran
seems to require it also).
(gdb-source-info): Parse correctly when compilation directory
specifies host also (IRIX).
2003-05-23 22:38:15 +00:00
Nick Roberts
e13dd0a857 (gud-gdba-command-name): Use -noasync option for Gdb
with MS windows.
(gdb-display-end): Only make buffer writeable temporarily.
Move "View" submenu up one level.
2003-05-21 20:12:20 +00:00
Nick Roberts
12174bc39e (gdb-view-source, gdb-selected-view): New variables.
(gdba): Inhibit DOS window in MS Windows.
(gdb-inferior-io-mode): Use hexl instead of cat.
(gdb-info-breakpoints-custom, gdb-assembler-custom, gdb-reset):
Use text in margin for MS Windows as there is no image support.
(gdb-restore-windows, gdb-setup-windows): Restore/start with
assembler view if appropriate.
(gdb-assembler-custom): Assembler code should display at point.
Parse address correctly.
(gdb-frame-handler): Accommodate selection of display of source
or assembler.
Add radio buttons to select display of source or assembler.
2003-05-21 00:49:46 +00:00
Nick Roberts
30dc0b2266 (put-arrow): Rename gdb-put-arrow and simplify.
(put-string): Rename gdb-put-string and simplify.
(remove-strings): Rename gdb-remove-strings.
(remove-arrow): Rename gdb-remove-arrow.
(gdb-assembler-custom): Try to get line marker (arrow) to display
in window (revisited).
Use with-current-buffer where possible.
2003-05-18 22:19:17 +00:00
Nick Roberts
3b623bffe2 (gdb-info-frames-custom): Reverse contrast of face for
selected frame.
(gdb-annotation-rules): Stop using frames-invalid and
breakpoints-invalid annotations. Update after post-prompt instead.
(gdb-post-prompt): Update frames and breakpoints here.
(gdb-invalidate-frame-and-assembler)
(gdb-invalidate-breakpoints-and-assembler): Remove.
(gdb-current-address): Remove.
(gdb-previous-address): New variable.
(gud-until): Extend to work in Assembler buffer
(gdb-append-to-inferior-io): Select IO buffer when there is
output.
(gdb-assembler-custom): Try to get line marker (arrow) to display
in window. Correct parsing for OS dependent output syntax of Gdb
command, where.
(gdb-frame-handler): Correct parsing for OS dependent output
syntax of Gdb command, frame.
(gdb-invalidate-assembler): Update assembler buffer correctly when
frame changes (revisited).
2003-05-17 10:17:57 +00:00
Nick Roberts
c453792f84 (gdb-invalidate-assembler): Update assembler buffer
correctly when frame changes.
(gdb-info-threads-custom, gdb-threads-buffer-name)
(gdb-display-threads-buffer, gdb-frame-threads-buffer)
(gdb-threads-mode-map, gdb-threads-mode, gdb-get-thread-number)
(gdb-threads-select, gdb-threads-mouse-select): New functions and
variable for a buffer that provides a selectable threads list.
2003-05-12 23:47:31 +00:00
Nick Roberts
d408a783f8 (breakpoint-enabled-icon, breakpoint-disabled-icon):
Include bitmap data for monochrome display.
(breakpoint-enabled-pbm-data, breakpoint-disabled-pbm-data):
New constants.
2003-05-03 22:20:57 +00:00
Nick Roberts
50df05be57 (gdb-inferior-io-mode): Remove Unix pathname for cat
so that it can run on NT also.
2003-03-31 21:23:45 +00:00
Juanma Barranquero
71296446d3 Trailing whitespace deleted. 2003-02-04 11:26:42 +00:00
Nick Roberts
377f175fe2 Improve commentary.
(gdb-window-height, gdb-window-width, gdb-display-number-end):
Customize the dimensions of frames for displayed expressions.
(gdb-error-begin): Comment out because it is not used because of
bug/quirk in annotations.
(gdb-reset): Use with-current-buffer.
2003-01-14 23:58:13 +00:00
Nick Roberts
94b83c8540 (gud-display): Use GDB command ptype instead of whatis
to find out if variable shuld be dereferenced.
(gud-display1): Exit if there is `No symbol'.
(gdb-expressions-mode-map): Correction to key-binding.
(gdb-reset): New function. Reset environment at end of debugging.
(gdb-quit): Remove.
2003-01-11 16:47:33 +00:00
Nick Roberts
82ab9672da Acknowledge Tom Lord as author of gdba.el.
Use let construction to bind buffer-read-only to nil.
(gdba): 'set height 0' in GDB.
(gdb-display-end, gdb-frame-handler): Corrections to forming
full expression name for header-line in display frame.
(gdb-info-breakpoints-custom): Highlight breakpoints since
they may be clicked on with mouse-2.
(gdb-quit): Delete frames of displayed expressions when
quitting.
(gdb-delete-frames): New function.
(gdb-source-info): Don't create stack buffer automatically.
2003-01-04 22:45:39 +00:00
Nick Roberts
5c39e45a0c (gdb-delete-display): Rename (gdb-delete-expression).
(gdb-goto-bp-this-line): Rename (gdb-goto-breakpoint).
(gdb-toggle-bp-this-line): Rename (gdb-toggle-breakpoint).
(gdb-delete-bp-this-line): Rename (gdb-delete-breakpoint).
(gdb-toggle-disp-this-line): Rename (gdb-toggle-display).
(gdb-delete-disp-this-line): Rename (gdb-delete-display).
(gud-gdba-marker-filter): Remove unnecessary save-match-data.
(gdb-mouse-goto-breakpoint, gdb-frames-select): New functions.
(gdb-frames-mouse-select): Simplify.
Make keybindings (gdb-goto-breakpoint, gdb-frames-select, etc)
consistent with other modes in emacs.
(gdb-display-source-buffer): Return window of source buffer
for (gud-display-line).
2002-12-29 20:46:41 +00:00
Nick Roberts
217aa7d7b7 (gdb-info-display-custom): Ensure that frames/buffers
of displayed expressions are deleted when the displayed expressions
are deleted.
(gdb-delete-disp-this-line, gdb-delete-display): Frame/buffer
deletion is handled by gdb-info-display-custom now.
(gdb-source-info): Undo earlier change (do create display buffer
automatically).
2002-12-26 00:12:09 +00:00
Nick Roberts
11eb20e049 (gdb-display-number-end): Make auto-display of
expressions in GDB work on text-only terminals.
(gdb-post-prompt): Compute current frame properly.
(gdb-get-current-frame, gdb-frame-handler): New functions.
(gdb-source-info): Move last statement into if clause.
Tidy, improve documentation.
2002-12-23 21:43:46 +00:00
Nick Roberts
02a0d085b2 Remove the concept of an instance. This means that a lot of functions have
been renamed. Accessors are prefixed with gdb-get, setters with gdb-set and
the word instance has been removed from many function and variable names.
(gdb-display-buffer): Protect source buffer as well
as GUD buffer when requesting new buffers.
(gdb-source-info): Two changes : Don't create display buffer
automatically, compute source window correctly.
2002-12-21 23:00:12 +00:00
Nick Roberts
28a771bf30 (gdba-marker-filter, gdb-output-burst): Merge and
rename gud-gdba-marker-filter.
(gdb-append-to-inferior-io): Only pop up IO buffer if there is
output.
(gdb-make-instance): Remove (put into gdba).
Use gdb-instance-enqueue-input instead of
gdb-instance-enqueue-idle-input for user functions.
(gdb-instance-target-string): Simplify.
(in-gdb-instance-context): Remove.
Expand Commentary.
2002-12-17 23:40:06 +00:00
Nick Roberts
b9d113dadd Improve documentation strings.
(gdb-many-windows): Set default value to nil.
2002-12-13 00:41:36 +00:00
Nick Roberts
f6c6513209 Remove inappropriate key-bindings.
(gdb-info-breakpoints-custom, gdb-goto-bp-this-line):
Parse correctly when breakpoint has no line number.
(def-gdb-auto-update-handler, gdb-info-locals-handler),
(gdb-display-end): Avoid using insert-buffer.
(gdb-frames-select-by-mouse): Rename gdb-frames-mouse-select.
2002-12-08 01:29:31 +00:00
Stefan Monnier
43eaf8f7c2 Replace uses of (gdb-get-instance-buffer 'gdba) and
gdb-proc with gud-comint-buffer instead.
(gdb-proc): Remove.
(def-gdb-var): Simplify.
(gdb-get-create-instance-buffer): Avoid make-variable-buffer-local.
Set gud-comint-buffer as well as gud-minor-mode and tool-bar-map.
(gdb-goto-bp-this-line): Select the window while doing the goto-line.
(gdb-info-locals-handler): Avoid replace-regexp.
2002-12-05 21:45:11 +00:00
Stefan Monnier
7dcca9f502 (gud-gdb-complete-string, gud-gdb-complete-break)
(gud-gdb-complete-list, gud-gdb-complete-in-progress): Remove.
(gdba): Call `gdb' and then make modifications.
Always call gdb-clear-inferior-io rather than just "the first time".
(gud-break, gud-remove): Definitions moved to inside gdba.
(gdb-target-name): Remove.  Use gud-target-name instead.
(gdba-complete-filter, gdba-common-init): Remove.
The changes were integrated into the generic code.
2002-12-05 17:03:06 +00:00
Stefan Monnier
fb113260f0 Fix up comment markers. 2002-12-04 18:52:48 +00:00
Stefan Monnier
b4795045fc Fold top-level setq's and define-key's into their corresponding defvar.
(gdb-inferior-io-mode-map): New var.
Add bindings to it rather than to comint-mode-map.
(gdb-display-number-end): Use dolist.  Remove always-true test.
(gdb-delete-line): Move and simplify.
(gdb-display-end): Don't bother going to beg-of-line since we're there.
(gdb-array-format1): Use dolist.
(gdb-make-windows-menu, gdb-make-frames-menu):
Move to top-level code.  Move the menus to within the GUD menu.
Make the menus only appear in gdba mode.
2002-12-04 18:43:59 +00:00
Stefan Monnier
8d594498d7 (gdb-inferior-io-mode-map): Remove (unused).
(gdb-inferior-io-mode): Use define-minor-mode.
(gdb-source-info): Don't burp if there's no source file.
(gdb-inferior-io-interrupt, gdb-inferior-io-quit)
(gdb-inferior-io-stop, gdb-inferior-io-eof)
(gdb-display-breakpoints-buffer, gdb-frame-breakpoints-buffer)
(gdb-display-stack-buffer, gdb-frame-stack-buffer)
(gdb-display-registers-buffer, gdb-frame-registers-buffer)
(gdb-display-locals-buffer, gdb-frame-locals-buffer)
(gdb-display-display-buffer, gdb-frame-display-buffer)
(gdb-display-gdb-buffer, gdb-frame-gdb-buffer)
(gdb-display-assembler-buffer, gdb-frame-assembler-buffer):
Remove the spurious left over arg from the "big reorg".
2002-12-04 17:20:06 +00:00
Stefan Monnier
e0823361bc Get rid of (quote ..); use match-string and ignore. 2002-12-03 22:24:21 +00:00
Stefan Monnier
65d7dd2e57 (gdba): Use the default for gud-find-file.
(def-gdb-variable): Remove: fold into def-gdb-var.
(def-gdb-var): Use buffer-local-value and with-current-buffer.
2002-12-03 21:40:47 +00:00
Stefan Monnier
f5016b6f0a (gdba, gdb-starting, gdb-stopped, gdb-quit): Update gdb-running -> gud-running. 2002-12-03 21:11:15 +00:00
Nick Roberts
e057060c2d (gdb-many-windows): Define as a minor mode.
(toggle-gdb-windows): Remove. (Patch from Stefan Monnier)
2002-11-30 20:57:48 +00:00
Nick Roberts
e6e1f54fa5 (gdb-starting): Set gdb-running to t.
(gdb-stopped): Set gdb-running to nil.
(gdb-quit): Reset some variables including tool-bar-map.
2002-11-28 21:24:19 +00:00
Nick Roberts
a922c25a24 Major re-organisation. Simplify legacy gdba code to allow only one gdb process. 2002-11-23 14:09:26 +00:00
Nick Roberts
71227e306c General tidying. Patches from Stefan Monnier. 2002-11-21 21:07:01 +00:00
Juanma Barranquero
4792bde6cc Fix feature name in `require'. 2002-11-14 08:57:24 +00:00
Nick Roberts
035ca7627f New file. 2002-11-14 01:53:27 +00:00