Questions tagged [gdb]
GNU Project Debugger - Start it via `M-x gdb` to run the debugger on Ada, C, C++, Objective-C, Pascal, Fortran, Java and other languages.
64 questions
0 votes
0 answers
76 views
dap-mode + gdb: No source file named /path/to/test-app.cpp
I'm trying to debug my C++ application with dap-mode and gdb, but no matter what I try it doesn't work: it cannot find the sources and the buttons are not responding. The message I get is No source ...
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
321 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 ...
1 vote
1 answer
149 views
realgud sets wrong path through tramp when setting breakpoint through GUI
I'm on my Windows machine with a file open on a remote linux server through tramp. I'm using realgud:gdb to debug my C++ file. In the (gdb) prompt, I can set breakpoint just fine using (gdb) b /path/...
0 votes
1 answer
430 views
gdb input/output buffer not working
I start gdb (with many-windows) through projectile-run-gdb but stdin/out is not displayed in the input/output buffer. And I have no clue where to look for the issue. Google search did not bring up any ...
2 votes
1 answer
71 views
Preventing shell mode from treating ! as a history reference
Various command-line tools, such as gdb, ftp, sftp, etc, use ! to prefix a command to be run in a shell. So (for instance) !mkdir foo will make a directory called foo. When using these tools inside ...
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: ...
0 votes
0 answers
152 views
Configuring emacs gdb behavior
I've been using gdb in emacs for a bit now and I mostly love it, but there are some minor quirks about its behavior that I find bothersome and I wanted to know how to go about tweaking them. I also ...