Linked Questions

259 votes
9 answers
401k views

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 ...
JSBձոգչ's user avatar
  • 41.6k
205 votes
11 answers
87k views

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.
elmarco's user avatar
  • 33.4k
176 votes
9 answers
115k views

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 ...
Andrew_Lvov's user avatar
  • 4,678
96 votes
8 answers
30k views

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 ...
Nathan Fellman's user avatar
66 votes
14 answers
163k views

I try to set up project interpteter Python 3.5 in Pycharm and get an SDK error? Any solution to fix it?
NibiruSpetsnaz's user avatar
19 votes
5 answers
50k views

Can anyone tell me which command is used to display the source code when debugging through GDB. Would be of great help.
Sarwan's user avatar
  • 657
14 votes
4 answers
23k views

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 ....
fred basset's user avatar
  • 10.2k
7 votes
1 answer
6k views

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 ...
A. K.'s user avatar
  • 39.3k
10 votes
2 answers
3k views

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 ...
Siyuan Ren's user avatar
  • 7,934
6 votes
2 answers
3k views

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 ...
abhi's user avatar
  • 3,596
1 vote
1 answer
999 views

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 ...
Lemonorn's user avatar
0 votes
1 answer
868 views

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 ...
Ciro Santilli's user avatar
3 votes
1 answer
570 views

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 ...
Gerrie's user avatar
  • 816
0 votes
0 answers
42 views

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. ...
Tim Randall's user avatar
  • 4,190