gud

How to change GUD breakpoint keybinding to the old one

前提是你 提交于 2020-01-04 02:29:08
问题 Currently, I am using GUD in the newest version of Emacs. The keybinding has changed since the old Emacs. Now it is "\C-x \C-a \C-b" for setting a breakpoint but it was \C-[space]. I was wondering if there is anyway to change the keybinding to the old format? (For some reason I cannot change my Emacs version) I am using Emacs 24.5 Here is my .emacs file: ;; .emacs ;;; uncomment this line to disable loading of "default.el" at startup ;; (setq inhibit-default-init t) ;; turn on font-lock mode

How to fix “stack overflow in regexp matcher” in emacs

烈酒焚心 提交于 2019-12-22 04:03:55
问题 I'm a big fan of Emacs, and use it a lot, especially while programming and debugging (using gud) (C/C++). Recently I had to debug a program (rather simple but that compute on a lot of data (Graph Theory)), but I had a rather annoying problem. During the execution step by step of the program, I get the following error: error in process filter: Stack overflow in regexp matcher I made some research to find out what it was, and I found out this post: Debugging in emacs (with gud) often results in

Emacs/GDB: always display source in specific window with gdb-many-windows

若如初见. 提交于 2019-12-21 10:06:01
问题 I use GDB in Emacs 24 with gdb-many-windows set to t , usually in its own frame. I like to have a separate editing frame. It looks like this (apologies for my crude ASCII diagram): +-------------+-------------+ | gdb | locals | +-------------+-------------+ | source | I/O | | | | +-------------+-------------+ | stack | breakpoints | +-------------+-------------+ This works pretty well except for one big problem. Whenever gdb needs to display a different source buffer, e.g., after up/down/step

display ASCII control characters in Emacs GUD (gdb) mode

≯℡__Kan透↙ 提交于 2019-12-13 19:54:00
问题 Programs I debug output a lot of debug using ascii ctrl characters for colors, bold etc. In GUD mode they appear as "^[[...m". Is there a way to have that output like it would be in a console? 回答1: You can use ansi-color.el which is part of Emacs now. You can add a hook to gdb-mode (I think that's what it's called) to automatically set this up when you go into gud. 来源: https://stackoverflow.com/questions/5674255/display-ascii-control-characters-in-emacs-gud-gdb-mode

Using gdb in Emacs 23

一曲冷凌霜 提交于 2019-12-09 11:58:06
问题 I am trying to move from Emacs v22.3.1 to v23.1.1 and all was going well until I tried to run gdb using gud inside Emacs. When I do meta-x gdb and give a command of 'gdb /my/executable/here' the window comes up fine, but when I type a command at the gdb prompt upon hitting return key to execute the command, nothing happens, status bar says 'Debugger:run' and the result is never shown. I can type 'ctrl-c ctrl-c' to kill the command and get the '(gdb)' prompt again, but another command just

How to fix “stack overflow in regexp matcher” in emacs

与世无争的帅哥 提交于 2019-12-05 02:05:07
I'm a big fan of Emacs, and use it a lot, especially while programming and debugging (using gud) (C/C++). Recently I had to debug a program (rather simple but that compute on a lot of data (Graph Theory)), but I had a rather annoying problem. During the execution step by step of the program, I get the following error: error in process filter: Stack overflow in regexp matcher I made some research to find out what it was, and I found out this post: Debugging in emacs (with gud) often results in stack overflow error . So as I understand it, there is a problem with the regexp matcher and the fact

Using ipdb with emacs' gud without explicit breakpoints in code

帅比萌擦擦* 提交于 2019-12-04 09:15:19
问题 I'm using python.el If I choose 'debugger' from the menu, and enter 'python -m pdb myfile.py', gud starts, and in a split frame I see the (Pdb) prompt in one, and my python code in the other with a caret on the first line, indicating that it's ready to go. For example 'n' steps to the next line and the caret moves accordingly. If instead I enter 'python -m ipdb myfile.py', the frame splits, and one split is labeled gud, but there's no ipdb console evident. In other words, this way of starting

Emacs/GDB: always display source in specific window with gdb-many-windows

喜夏-厌秋 提交于 2019-12-04 03:18:38
I use GDB in Emacs 24 with gdb-many-windows set to t , usually in its own frame. I like to have a separate editing frame. It looks like this (apologies for my crude ASCII diagram): +-------------+-------------+ | gdb | locals | +-------------+-------------+ | source | I/O | | | | +-------------+-------------+ | stack | breakpoints | +-------------+-------------+ This works pretty well except for one big problem. Whenever gdb needs to display a different source buffer, e.g., after up/down/step, it doesn't always show it in the "source" window. For example, if I have the same buffer open in a

How to turn off *input/output* buffer in gud

♀尐吖头ヾ 提交于 2019-12-03 08:40:27
问题 I recently switched to using GNU Emacs 24 from 23, and I notice that whenever I enter gud the *input/output* buffer is open. I have close it manually with C-x 0 everytime I debug. Can anyone point me to the correct variable which needs to be configured in order to stop displaying this buffer by default? 回答1: There is a 'gud-gdb' in new emacs releases that implement the old behavior of gdb/emacs interaction (no dedicated-windows and no I/O buffer). If you don't want to call M-x gud-gdb when

Using ipdb with emacs' gud without explicit breakpoints in code

浪子不回头ぞ 提交于 2019-12-03 02:27:35
I'm using python.el If I choose 'debugger' from the menu, and enter 'python -m pdb myfile.py', gud starts, and in a split frame I see the (Pdb) prompt in one, and my python code in the other with a caret on the first line, indicating that it's ready to go. For example 'n' steps to the next line and the caret moves accordingly. If instead I enter 'python -m ipdb myfile.py', the frame splits, and one split is labeled gud, but there's no ipdb console evident. In other words, this way of starting ipdb doesn't seem to work. Ipdb works just fine if I manually insert a breakpoint into my python code