Questions tagged [gud]
Grand Unified Debugger
48 questions
0 votes
1 answer
93 views
How could I disable breakpoints(or make them not visible)?
So, I keep accidentally somehow inserting breakpoints to the left of my screen. I was wondering, is there a way to completely disable them? I have already tried adding this to my init.el file, but to ...
0 votes
1 answer
188 views
Disabling autocompletions in gud-gdb
I'm debugging a large C/C++ project (several millions lines of code, adding debug symbols to exec make it grow by 2.5Go) using GUD (gdb 12.1) on Emacs 29.1. My issue is that in the gud-<...
1 vote
0 answers
52 views
ASM debugging : How to watch registers in GUD's speedbar?
I'm trying to debug a programm written in ASM with GDB through Emacs's GUD interface. I've enabled (gdb-many-windows), set a watchpoint on $rax which gives me the changes of the register's value in ...
0 votes
1 answer
190 views
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 ...
0 votes
1 answer
322 views
How to make gdb show locals buffer in a different window?
Using gdb in emacs, gdb shows the source code to the right of the gdb prompt. According to the documentation, I can do M-x gdb-display-locals-buffer which displays the local variables. However, when I ...
0 votes
1 answer
146 views
Changing Breakpoint Icons in GDB
So I've recently started using gud's M-x gdb instead of gdb on it's own, as it provides Emacs with some nice IDE features, mainly being able to see where you are in the code, and where you have set ...
0 votes
1 answer
80 views
.m file become read only when debugging in matlab-mode
Is it possible to add a hook or set a configuration variable such that the .m file I am debugging remains in edit mode when debugging starts. I don't want to switch out of read-only mode to ...
1 vote
1 answer
99 views
How to suppress certain parts of gud-gdb -i=mi output in gud buffer?
I start gdb in emacs with 'gdb' command. Is there a way to hide certain lines from being shown in gud buffer? For example, when I do C-c C-c on a running program, I see the following in the buffer: ...
1 vote
1 answer
724 views
gdb over ssh via tramp fails (but gdb-gud works?)
I am running into an issue where the gdb command fails over tramp. The remote host is a simple linux box I am accessing via ssh. Even when I run emacs without my init file it still happens. Emacs 27....
1 vote
2 answers
80 views
How do I get the name of the file being executed in a perldb-mode-hook?
I've been adding some modifications to the perldb which goes through gud. When started it calls its perldb-mode-hook so that and .perldb is where I'm working. From within the hook I can get the ...
0 votes
1 answer
599 views
Configure gud to invoke python3 debugger instead of python debugger
When I issue the Emacs command M-x pdb it invokes Python’s pdb as python -m pdb foo.py. I want to instead invoke python3 -m pdb foo.py -- how do I set this up?
0 votes
1 answer
446 views
monitor commands from gud/gdb command line not showing output
In a plain terminal, I can run gdb, connect to gdb server via 'target remote :nnnn` and then use the 'monitor' command to send commands to the remote app, and the results from running those commands ...
0 votes
0 answers
95 views
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 ...
1 vote
0 answers
68 views
emacs c++ gud cannot skip non existing file, making it unusable
I have this file: #include <string> using namespace std; string remove(string s) { return s; } int main() { string s1 = "aaaa"; string s2 = remove(s1); return 0; } g++9 -...
0 votes
1 answer
107 views
Set colour/font for markers [duplicate]
Is it possible to set the colour or font of markers (e.g. the ones set by gud in gud-display-line by using make-marker). The theme I am using shows markers in a difficult-to-see light gray. I would ...