Category "gdb"

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