summaryrefslogtreecommitdiff
path: root/lisp/gdb-ui.el
Commit message (Collapse)AuthorAgeFilesLines
* (gdba): Remove gdb-quit (previously removed) fromNick Roberts2003-08-241-66/+38
| | | | | | | | | | | | | | | 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.
* (gdb-insert-field, gdb-array-format1)Nick Roberts2003-08-111-30/+26
| | | | | | | | | (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.
* (gdb-setup-windows, gdb-restore-windows): RestoreNick Roberts2003-07-281-11/+16
| | | | | | 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.
* (gdb-source-info): Display current frame whenNick Roberts2003-07-071-4/+8
| | | | | | 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.
* (gdb-display-number-end): Don't re-initialise localNick Roberts2003-06-291-19/+25
| | | | | | | | | 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.
* (gud-display1): Keep the gdb command, "display", inNick Roberts2003-06-181-47/+54
| | | | | | | | | 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.
* (gdb-get-current-frame, gdb-frame-handler): Use GdbNick Roberts2003-06-081-31/+36
| | | | | | | 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.
* (gdb-info-breakpoints-custom, gdb-assembler-custom):Nick Roberts2003-05-251-14/+35
| | | | | | | | | | | | | | 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.
* (gdba): Accommodate Fortran programs.Nick Roberts2003-05-231-7/+7
| | | | | | | (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).
* (gud-gdba-command-name): Use -noasync option for GdbNick Roberts2003-05-211-39/+73
| | | | | | with MS windows. (gdb-display-end): Only make buffer writeable temporarily. Move "View" submenu up one level.
* (gdb-view-source, gdb-selected-view): New variables.Nick Roberts2003-05-211-42/+86
| | | | | | | | | | | | | | (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.
* (put-arrow): Rename gdb-put-arrow and simplify.Nick Roberts2003-05-181-115/+67
| | | | | | | | | (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.
* (gdb-info-frames-custom): Reverse contrast of face forNick Roberts2003-05-171-84/+104
| | | | | | | | | | | | | | | | | | | | | 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).
* (gdb-invalidate-assembler): Update assembler bufferNick Roberts2003-05-121-5/+84
| | | | | | | | | 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.
* (breakpoint-enabled-icon, breakpoint-disabled-icon):Nick Roberts2003-05-031-32/+66
| | | | | | Include bitmap data for monochrome display. (breakpoint-enabled-pbm-data, breakpoint-disabled-pbm-data): New constants.
* (gdb-inferior-io-mode): Remove Unix pathname for catNick Roberts2003-03-311-9/+3
| | | | so that it can run on NT also.
* Trailing whitespace deleted.Juanma Barranquero2003-02-041-20/+20
|
* Improve commentary.Nick Roberts2003-01-141-16/+32
| | | | | | | | (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.
* (gud-display): Use GDB command ptype instead of whatisNick Roberts2003-01-111-34/+36
| | | | | | | | 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.
* Acknowledge Tom Lord as author of gdba.el.Nick Roberts2003-01-041-109/+118
| | | | | | | | | | | | | 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.
* (gdb-delete-display): Rename (gdb-delete-expression).Nick Roberts2002-12-291-102/+109
| | | | | | | | | | | | | | | (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).
* (gdb-info-display-custom): Ensure that frames/buffersNick Roberts2002-12-261-65/+70
| | | | | | | | | 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).
* (gdb-display-number-end): Make auto-display ofNick Roberts2002-12-231-100/+104
| | | | | | | | 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.
* Remove the concept of an instance. This means that a lot of functions haveNick Roberts2002-12-211-266/+250
| | | | | | | | | 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.
* (gdba-marker-filter, gdb-output-burst): Merge andNick Roberts2002-12-171-53/+35
| | | | | | | | | | | | 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.
* Improve documentation strings.Nick Roberts2002-12-131-21/+24
| | | | (gdb-many-windows): Set default value to nil.
* Remove inappropriate key-bindings.Nick Roberts2002-12-081-64/+64
| | | | | | | | (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.
* Replace uses of (gdb-get-instance-buffer 'gdba) andStefan Monnier2002-12-051-73/+52
| | | | | | | | | | 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.
* (gud-gdb-complete-string, gud-gdb-complete-break)Stefan Monnier2002-12-051-153/+34
| | | | | | | | | | (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.
* Fix up comment markers.Stefan Monnier2002-12-041-51/+45
|
* Fold top-level `setq's and `define-key's into their corresponding defvar.Stefan Monnier2002-12-041-166/+136
| | | | | | | | | | | | (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.
* (gdb-inferior-io-mode-map): Remove (unused).Stefan Monnier2002-12-041-51/+48
| | | | | | | | | | | | | | | (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".
* Get rid of (quote ..); use match-string and ignore.Stefan Monnier2002-12-031-135/+94
|
* (gdba): Use the default for gud-find-file.Stefan Monnier2002-12-031-24/+15
| | | | | (def-gdb-variable): Remove: fold into def-gdb-var. (def-gdb-var): Use buffer-local-value and with-current-buffer.
* (gdba, gdb-starting, gdb-stopped, gdb-quit): Update gdb-running -> gud-running.Stefan Monnier2002-12-031-4/+10
|
* (gdb-many-windows): Define as a minor mode.Nick Roberts2002-11-301-32/+7
| | | | (toggle-gdb-windows): Remove. (Patch from Stefan Monnier)
* (gdb-starting): Set gdb-running to t.Nick Roberts2002-11-281-44/+37
| | | | | (gdb-stopped): Set gdb-running to nil. (gdb-quit): Reset some variables including tool-bar-map.
* Major re-organisation. Simplify legacy gdba code to allow only one gdb process.Nick Roberts2002-11-231-525/+395
|
* General tidying. Patches from Stefan Monnier.Nick Roberts2002-11-211-28/+47
|
* Fix feature name in `require'.Juanma Barranquero2002-11-141-10/+10
|
* New file.Nick Roberts2002-11-141-0/+2610