Questions tagged [gud]

Grand Unified Debugger

46 questions
4
votes
3 answers

How do you break a running program under gud?

In the vanilla gdb interface, I can hit C-c to break the running program, insert breakpoints, etc., and then run continue to resume execution of the program being debugged. Is this possible with gud? C-c C-c in gud actually sends SIGKILL to the…
mgalgs
  • 474
  • 4
  • 12
2
votes
1 answer

Is gud working at all in emacs 24?

I am trying to switch from vim to evil mode and got very far. The last thing what is missing is debugging with "gdb". I want to be equally productive as with clewn in vim (this means source level debugging, not a bare command line interface). So I…
kilian
  • 31
  • 2
1
vote
0 answers

emacs c++ gud cannot skip non existing file, making it unusable

I have this file: #include using namespace std; string remove(string s) { return s; } int main() { string s1 = "aaaa"; string s2 = remove(s1); return 0; } g++9 -g test.cpp In .gdbinit, I have "skip -gfile…
kgflying
  • 141
  • 4
0
votes
1 answer

colored custom gdb configuration not shown in GUD

I am using a .gdbinit file to extend and prettify my gdb. The file uses escapes to colorize gdb which makes gdb look like this: Mostly I am using gdb with gud in emacs. Unfortunately gud is not resolving the escapes to a colored output, so I get…
0
votes
0 answers

pdb hangs through gud on emacs when path has `@` symbol

more tests I've now confirmed this behavior in Emacs 24.5 on a linux machine. Basically, if there is an @ symbol in one of the parent directories, gud will hang. the first update I've actually discovered what the issue is, but don't know how to fix…
JasonMond
  • 113
  • 4
0
votes
1 answer

GUD mode: check if program is running

I'd like to use one hotkey for continuing running (gud-cont) and starting running (gud-run). How can I check if gdb (or other debugger, if possible) is running a program right now? Is there a debugger-independent variable? Currently my function…
pashazz
  • 35
  • 2