Linked Questions
14 questions linked to/from gdb split view with code
259 votes
9 answers
401k views
Show current assembly instruction in GDB
I'm doing some assembly-level debugging in GDB. Is there a way to get GDB to show me the current assembly instruction in the same way that it shows the current source line? The default output after ...
205 votes
11 answers
87k views
How to highlight and color gdb output during interactive debugging?
Please don't reply I should use ddd, nemiver, emacs, vim, or any other front-end, I just prefer gdb as it is, but would like to see its output with some terminal colors.
176 votes
9 answers
115k views
Do you debug C++ code in Vim? How? [closed]
The question is to all you people, who use Vim to develop C++ applications. There was a period in my life, which can be described as 'I hate Vim!!!'..'Vim is nice!' However, having grown up mostly ...
96 votes
8 answers
30k views
How does reverse debugging work?
GDB has a new version out that supports reverse debug (see http://www.gnu.org/software/gdb/news/reversible.html). I got to wondering how that works. To get reverse debug to work it seems to me that ...
66 votes
14 answers
163k views
Why do I get an 'SDK seems invalid' error when setting up my Project Interpreter in PyCharm?
I try to set up project interpteter Python 3.5 in Pycharm and get an SDK error? Any solution to fix it?
19 votes
5 answers
50k views
How to display the code window when debugging by GDB
Can anyone tell me which command is used to display the source code when debugging through GDB. Would be of great help.
14 votes
4 answers
23k views
How to single step ARM assembly in GDB on QEMU?
I'm trying to learn about ARM assembler programming using the GNU assembler. I've setup my PC with QEmu and have a Debian ARM-HF chroot environment. If I assemble and link my test program: .text ....
7 votes
1 answer
6k views
how to exit the wh mode in gdb
The 'wh' mode in gdb is not working very well for me. When I dump some data the command window and the program text window gets overlapped and it looks quite messy. I want to exit the wh mode without ...
10 votes
2 answers
3k views
GDB in TUI mode: how to deal with stderr's interaction with the ui
I am trying to use gdb to debug caffe. I prefer to use the tui mode because it allows me to see the whole source code rather than just a single line. But there is a problem: whenever the program caffe ...
6 votes
2 answers
3k views
GDB step into Dynamic linker(ld.so) code
I wanted to step into the code of ld.so whenever it will be used in my normal c code. I am trying to code flow through GDB in the TUI mode where you can see both source code and assembly as you step ...
1 vote
1 answer
999 views
How to compile the Linux kernel with -O0 for more detailed debug?
I'm hacking the Linux kernel v5.15 and try to debug it with gdb line by line. I've opened the dwarf debug info through make menuconfig. However, it seems that some line will still be skipped. I find ...
0 votes
1 answer
868 views
How to setup Eclipse IDE for gem5 development?
Due to: extensive usage of code auto-generation (notably for the .isa instruction and decoder sublanguage) scons symlinking sources into the build tree, and in particular symlinking src/arch/ARCH to ...
3 votes
1 answer
570 views
Can I debug more finely in gem5?
In gem5, can I step through my code? Like gdb instead of using DPRINTF to print out certain statements in some places? 1、Now,I found I can debug the gem5 through the command like gdb --args gem5.debug ...
0 votes
0 answers
42 views
Was GDB listing the code as I stepped through, or was I only dreaming?
Years ago, when I last had call to use GDB to debug a Linux server, I seem to remember seeing a listing of the code that was being executed. Perhaps it was just the current line +/- five lines or so. ...