Questions tagged [gud]

The GUD (Grand Unified Debugger) library provides an Emacs interface to a wide variety of symbolic debuggers. It can run the GNU Debugger (GDB), as well as DBX, SDB, XDB, Perl’s debugging mode, the Python debugger PDB, and the Java Debugger JDB.

36 questions
20
votes
3 answers

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

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…
debamitro
  • 381
  • 3
  • 8
14
votes
1 answer

Using ipdb with emacs' gud without explicit breakpoints in code

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…
garyp
  • 967
  • 7
  • 36
12
votes
4 answers

Making filenames/line numbers linkable in Emacs gud buffer

I'm running pdb on my testcases in Python through the gud buffer. When I get a stacktrace/failure in my testcase, it looks like this: FAIL: test_foo_function…
Matt Harrison
  • 1,225
  • 11
  • 12
9
votes
1 answer

how do i hook commands sent to pdb through gud?

i've started using pdb through gud in emacs 23.3, how can i hook command messages sent to the debugger from the buffer? i wrote the advice below for use with gdb, in order to persist comint's ring, but can't find an equivalent function to hook for…
elbeardmorez
  • 580
  • 1
  • 5
  • 13
9
votes
2 answers

How to fix "stack overflow in regexp matcher" in emacs

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.…
SJuhel
  • 182
  • 1
  • 9
8
votes
3 answers

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

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 …
Jay Conrod
  • 28,943
  • 19
  • 98
  • 110
7
votes
3 answers

Setting up gdb's environment when running it through emacs

I have a program that I'd like to debug with gdb via emacs. In order to run development versions of this program, I have a shell script that I can source that sets up the calling environment to see the right libraries, etc. What I can't sort out is…
abingham
  • 1,294
  • 1
  • 10
  • 17
7
votes
2 answers

Using gdb in Emacs 23

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…
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
6
votes
1 answer

Is it a button or a tab on headers in Emacs gdb-many-windows-mode?

Some of the windows have clickable buttons or tabs on header in gdb-many-windows-mode such as 'Locals/Registers' or 'Breakpoints/Threads'. Are they tabs? Can I add new one next to them?
aspirin
  • 347
  • 1
  • 5
5
votes
1 answer

emacs gud window use

How do I customize which window GUD will use when i issue commands - 'up', 'down', etc ? It seems to use an arbitrary window, sometimes even the window with gdb in it - I want to be able to specify a specific window to be used.
Nathaniel Flath
  • 15,477
  • 19
  • 69
  • 94
4
votes
2 answers

Emacs gud raising prefix key error

I'm trying to debug code in Emacs but when I try either M-x gdb or M-x pdb, I get this error: global-set-key: Key sequence C-x C-a C-l starts with non-prefix key C-x C-a This is most likely coming from this bit in gud.el: (defcustom gud-key-prefix…
Doug Harris
  • 3,169
  • 5
  • 29
  • 31
4
votes
1 answer

emacs 24 gud-mi gdb questions

I am having niggling issues using Emacs v24's gud-mi interface with gdb. I hope someone here can help me out, Google hasn't been much help (probably because of very generic terms) I use gdb in Emacs thusly: gdb -i=mi --annotate=0 Questions: 1) One…
4
votes
1 answer

emacs gdb tab-completes directory with space instead of /

When I run gdb within emacs (with M-x gdb) and I try to tab-complete directory names, it completes with a space instead of a slash. So, for example: (gdb) run/mn tab-completes to (gdb) run /mnt  when it should tab-complete to (gdb) run /mnt/ If I…
alexras
  • 397
  • 1
  • 8
3
votes
1 answer

Emacs GDB ReRun Behaviour

I would like the command gdb on program X to instead switch to an existing debugging session of X if it already exists instead of signalling an error "This program is already being debugged" in gud-common-init. I believe this is important as it…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
3
votes
0 answers

Is there a way to clear gud's (gdb's) *input/output* buffer for a re-run?

I'm recently started to use emacs gdb debugger but I can't find a way to clear *input/output* buffer for a re-run. emacs simply prints the output after the previous one!
Ark
  • 117
  • 2
  • 7
1
2 3