![]() (overlay-put ov 'face 'secondary-selection) ( let* ((ov (make-overlay (point-min) (point-min)))) The original code is commented out below, and the entire thing is tested and working in GNU Emacs 23. I’ve made a trivial modification to make it higlight the entire line, as opposed to the original which only highlights it up to the newline character of the current line. I use a snippet from here to highlight the marker line. ![]() It has been released as part of Emacs 22. NickRoberts is working on a version of GUD, GdbMode, specialised for GDB. src/gtk-gnutella: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.6, dynamically linked (uses shared libs), not strippedĪ nice way of getting that into a list is to strip everything after the colon (assuming no executable exists with a colon in its name (a reasonable assumption)) with cut: cut -f1 -d: xtype f -perm +111 -print0 | xargs -0 file | grep "ELF" One can generate a list of potential candidates using find: $ find. All one needs for completion is a list of files to be read into using something like SubprocessCompletion. NickRobertsĬompletion can be used as a way of passing a list of potential executables with their complex paths destined for gdb. The Perl debugger cannot (yet) be used via the GUD interface. If you want more than a command window for interaction, try gdb-many-windows.It would be nice to use the Gud menu in the code window. Unfortunately, this doesn’t add the Gud menu to the code-window MenuBar.switch over to the gud window and run, and use the Gud.put the TextCursor on a line and do M-x gud-break (bound to C-x SPC).Switch your other window over to the code window.M-x gdb # as ‘gdb hello’ this will start a gdb in the code window. ![]() ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |