Category "gdb"

log file that contains the execution flow of a C or C++ program

I need to generate a log file that contains the execution flow of a C or C++ program. This log file should contain each line of the program (with line number sp

Qt Creator GDB "Additional Startup Command" , "Additional Attach Command" what is the syntax?

Having troubles settings solib-search-path in Options->Debugger->GDB-> "Additional Startup Command" , "Additional Attach Command" looks like if I do: "

What does 'inferior' mean in the term 'inferior debugger'?

I didn't really understand the explanation for inferior in the GDB manual, and google doesn't yield anything more helpful. Can anyone explain 'inferior' in sim

How to run gdb on an executable with arguments?

How can I run something like gdb -e path/to/exe -ex 'run --argnamae argvalue'? Let's assume a recent version of gfb, within the past year or two. Gdb runs and

how to view std:unordered_map member in GDB

When trying to access a member of std::unordered_map using [], I get an error: Attempt to take address of value not located in memory. There is a nice gdb

Jump to current line being executed in cgdb

Is it possible to jump to current line being executed in the Source Window of cgdb? It would be great to have a command or a shortcut to do this, especially a

Running gdb on xv6-riscv-fall19

So I follow the commands on the website. I open one windows and I used the command: sudo make qemu-gdb. And it asked me to use another terminal to start gdb.

How does `gdb` compute the bounds of a stack frame?

I am debugging a new thread library, in which I set the stack register rsp manually (to switch to a user-managed stack), and then invoke a function which never