summaryrefslogtreecommitdiff
path: root/lisp/gdb-ui.el
Commit message (Collapse)AuthorAgeFilesLines
* (breakpoint-enabled-icon, breakpoint-disabled-icon):Kim F. Storm2004-02-281-71/+99
| | | | | | | | | | | | | | | | | | | | | | | | | Initialize margin area images to nil. (breakpoint-bitmap): New defvar for breakpoint fringe bitmaps. (breakpoint-enabled-bitmap-face) (breakpoint-disabled-bitmap-face): New faces for bpt in fringe. (gdb-info-breakpoints-custom): Use gdb-remove-breakpoint-icons. (gdb-info-breakpoints-custom): Use gdb-put-breakpoint-icon. (gdb-mouse-toggle-breakpoint): Handle bpt in fringe. (gdb-reset): Use gdb-remove-breakpoint-icons. (gdb-put-string): Add dprop arg to specify alternative display property (for setting fringe bitmap). (gdb-remove-strings): Doc fix. (gdb-put-breakpoint-icon): New defun which displays a breakpoint icon in fringe (if available), or else as icon or text in display margin. Creates necessary icons in breakpoint-bitmap, breakpoint-enabled-icon, and/or breakpoint-disabled-icon. Also make left window margin if required. (gdb-remove-breakpoint-icons): New defun to remove breakpoint icons inserted by gdb-put-breakpoint-icon. Remove left margin if no longer needed. (gdb-assembler-custom): Use gdb-remove-breakpoint-icons and gdb-put-breakpoint-icon. (gdb-assembler-mode): Don't set left-margin-width here.
* (gud-watch): Load tooltip, if necessary.Nick Roberts2004-02-231-16/+20
| | | | | | (gdb-var-create-handler): Force speedbar-update-flag to be non-nil. (gdb-var-delete): Make interactive (really). (gdb-edit-value): Make non-interactive.
* (gdb-use-colon-colon-notation): Set default to nil forNick Roberts2004-02-201-17/+15
| | | | | | case of variables defined in compound statements. (gdb-setup-windows, gdb-source-info, gdb-source-info): Simplify constructions using switch-to-buffer.
* (gdb-ann3): Revert previous change. (don't use GDB command "set width 0").Nick Roberts2004-01-081-8/+6
| | | | | (gdb-source-info): Allow for case of where compilation directory is not recorded.
* (gdba): Avoid duplication, use gdb-ann3. Use GDBNick Roberts2004-01-071-65/+6
| | | | | command "set width 0" to prevent word wrapping problems. (gdb-prompt): Set (renamed) gdb-first-prompt to nil in gdb-ann3.
* (gdb-frame-handler): Handle word wrapping anywhere inAndreas Schwab2004-01-061-5/+4
| | | | output.
* (gdb-prompt): Change filter for level 3 annotations,Nick Roberts2003-12-281-44/+107
| | | | | | | | | | if necessary. (gdb-ann3): New function. Initialise M-x gdb as for M-x gdba if annotations are detected. (gud-gdba-marker-filter): Use global variable gud-marker-acc instead of a local one to allow transition from gud-gdb-marker-filter. Remove trailing white space.
* (gdba, gdb-assembler-mode): Call the mode "Machine" asNick Roberts2003-12-231-34/+65
| | | | | | | | | | | | | | | | | | | | a mode called "Assembler" already exists. (gdb-use-colon-colon-notation, gdb-show-changed-values): New options. (gud-watch): Use format option. Remove font properties from string. (gdb-var-create-handler, gdb-var-list-children-handler): Don't bother about properties as there are none. (gdb-var-create-handler, gdb-var-list-children-handler) (gdb-var-update-handler): Call gdb-var-evaluate-expression-handler with two arguments. (gdb-var-evaluate-expression-handler, gdb-post-prompt): Let speedbar show value changes with a different font. (gdb-edit-value): New defun. (gdb-clear-partial-output, gdb-clear-inferior-io) (def-gdb-auto-update-handler): Use erase-buffer. (gdb-frame-handler): Display watch expressions in FUNCTION::VARIABLE format if required.
* (gud-watch, gdb-var-create-handler)Nick Roberts2003-11-291-8/+8
| | | | | | (gdb-var-list-children, gdb-var-list-children-handler) (gdb-var-update-handler, gdb-var-delete): Add server prefix to the gdb commands that use mi to keep them out of the command history.
* (gdb-mouse-toggle-breakpoint): New defun.Kim F. Storm2003-11-231-0/+17
| | | | (gdba): Bind it to [left-margin mouse-1] and [left-fringe mouse-1].
* (gud-gdba-command-name): Find gdb command via PATH.Kim F. Storm2003-11-191-10/+10
| | | | | | (breakpoint-xpm-data, breakpoint-enabled-pbm-data): Make smoother. (breakpoint-enabled-icon, breakpoint-disabled-icon): Set :ascent to 100 for icons to avoid increasing line height when shown.
* (gdb-current-language): New variable.Nick Roberts2003-10-211-34/+27
| | | | | | | | (gdb-update-flag): Remove variable. (gud-watch,gdb-frame-handler): Adapt for other languages (Fortran). (gdb-take-last-elt): Remove function. (gdb-dequeue-input): Avoid recursion by not using gdb-take-last-elt. (gdb-post-prompt): Check for variable object changes here.
* (breakpoint-xpm-data, breakpoint-enabled-pbm-data)Nick Roberts2003-10-161-30/+24
| | | | | (breakpoint-disabled-pbm-data): Make breakpoint icons 10x10 instead of 12x12.
* Revision: miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-79Miles Bader2003-10-081-8/+6
| | | | | | | Use :inverse-video face in gdb-ui.el * gdb-ui.el (gdb-info-frames-custom): Use proper :inverse-video face instead of attempting to emulate it.
* (gdb-var-list, gdb-var-changed, gdb-update-flag)Nick Roberts2003-09-301-629/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (gdb-update-flag): New variables. (gdb-var-update, gdb-var-update-handler,gdb-var-delete) (gdb-speedbar-expand-node, gdb-var-evaluate-expression-handler) (gud-watch, gdb-var-create-handler) : New functions. (gdb-var-list-children, gdb-var-list-children-handler) (gdb-var-create-regexp, gdb-var-update-regexp) (gdb-var-list-children-regexp): New constants. (gud-gdba-command-name): Don't specify -noasync so that GDB/MI works. (gdb-annotation-rules): Reduced annotation set (level 3). (gdb-pre-prompt, gdb-prompt): Call handler in gdb-prompt. (gdb-post-prompt): Don't update GDB buffers every time speedbar updates. (gdb-window-height, gdb-window-width, gdb-display-in-progress) (gdb-expression-buffer-name, gdb-display-number, gdb-point) (gdb-dive-display-number, gdb-nesting-level, gdb-expression) (gdb-annotation-arg, gdb-dive-map, gdb-values, gdb-array-start) (gdb-array-stop, gdb-array-slice-map, gdb-display-string) (gdb-array-size, gdb-display-mode-map, gdb-expressions-mode-map): (gdb-expressions-mode-menu, gdb-dive): Remove variables. (gud-display, gud-display1) (gdb-display-begin,gdb-display-number-end, gdb-delete-line) (gdb-display-end, gdb-display-go-back, gdb-array-section-end) (gdb-field-begin, gdb-field-end, gdb-elt,gdb-field-format-begin) (gdb-field-format-end, gdb-dive, gdb-dive-new-frame) (gdb-insert-field, gdb-array-format, gdb-mouse-array-slice) (gdb-array-slice, gdb-array-format1, gdb-info-display-custom) (gdb-delete-frames, gdb-display-mode, gdb-display-buffer-name) (gdb-display-display-buffer, gdb-toggle-display) (gdb-delete-display, gdb-expressions-popup-menu) (gdb-expressions-mode, gdb-array-visualise): Remove functions. (gdb-setup-windows, gdb-reset, gdb-source-info): Remove references to display buffer.
* (gud-display1): Use gud-call to prevent extra promptNick Roberts2003-09-041-57/+20
| | | | | | | | | | 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.
* Add arch taglinesMiles Bader2003-09-011-0/+1
|
* (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
|