gdb split view with code

It’s called the TUI (no kidding). Start for example with gdbtui or gdb -tui … Please also see this answer by Ciro Santilli. It wasn’t available in 2012 to the best of my knowledge, but definitely worth a look.

Is there an “until” command in gdb?

In addition to Michael’s explanation of breakpoints, that are probably the best way to solve your problem, there are actually also are “until” and “advance” commands, that do just what you require/suggest. Basically you can do “until 60” or “until main.c:60” or “advance 60” or similar, depending if you want to limit temporary breakpoint to … Read more

Step out of current function with GDB

You can use the finish command. finish: Continue running until just after function in the selected stack frame returns. Print the returned value (if any). This command can be abbreviated as fin. (See 5.2 Continuing and Stepping.)

Core dump file analysis

You just need a binary (with debugging symbols included) that is identical to the one that generated the core dump file. Then you can run gdb path/to/the/binary path/to/the/core/dump/file to debug it. When it starts up, you can use bt (for backtrace) to get a stack trace from the time of the crash. In the backtrace, each function invocation is … Read more

gdb: “No symbol table is loaded”

irst of all, what you have is a fully compiled program, not an object file, so drop the .o extension. Now, pay attention to what the error message says, it tells you exactly how to fix your problem: “No symbol table is loaded. Use the “file” command.” Or just pass the program on the command line.