Top "Gdb" questions

Use this tag for problems related to or involving GDB, the standard debugger for the GNU software system.

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 …

gdb terminal colors
Saving core file in gdb

Is it possible to save/dump core file using gdb? Sometimes I want to save file to analyze it later.

gdb core-file
"please check gdb is codesigned - see taskgated(8)" - How to get gdb installed with homebrew code signed?

I'm under osx 10.8.4 and have installed gdb 7.5.1 with homebrew (motivation get a new gdb with new features such as --with-python …

c++ eclipse macos gdb homebrew
How to set breakpoints on future shared libraries with a command flag

I'm trying to automate a gdb session using the --command flag. I'm trying to set a breakpoint on a function …

c++ c linux unix gdb
Solaris Core dump analysis

I use pstack to analyze core dump files in Solaris How else can I analyze the core dump from solaris? …

gdb solaris coredump dbx
What is the difference between gcc -ggdb and gcc -g

When I use gcc to compile C programs I usually use -g to get some debug information into the elf …

gcc gdb
How do you start running the program over again in gdb with 'target remote'?

When you're doing a usual gdb session on an executable file on the same computer, you can give the run …

embedded gdb debugging
How to inspect the return value of a function in GDB?

Is it possible to inspect the return value of a function in gdb assuming the return value is not assigned …

debugging cross-platform gdb return-value
Gdb dump memory in specific region, save formatted output into a file

I have a buggy (memory leaked) software. As an evidence, I have 1GB of core.dump file. Heap size is 900…

memory-leaks gdb dump coredump
Debugging child process after fork (follow-fork-mode child configured)

I'm developing an application which the parent forks a child to handle certain tasks. I'm having an issue where I've …

c gdb signals fork