
The Complete Guide to Debugging C and C++ With GDB
A full guide to GDB for C and C++: building for debugging, crashes, wrong answers, hangs, corruption, threads, core files, remote targets and habits.
Tag
362 posts

A full guide to GDB for C and C++: building for debugging, crashes, wrong answers, hangs, corruption, threads, core files, remote targets and habits.

Learn FreeRTOS V11.1.0 software timers, the timer service task, the idle hook and tickless idle, from one-shot timers to low-power setup.

Learn Win32 from scratch in C: handles, files, processes, threads, synchronization, memory, pipes, DLLs, windows and error handling, with code for each.

A practical guide to USB device firmware: enumeration, descriptors, endpoints, device classes, stacks, hardware, a first STM32 device, debugging and updates.

A working guide to Linux system calls: invocation, error returns, the main families with code, tracing with strace, seccomp filtering and portability.

Learn OpenCL 3.0 in C from platform discovery to kernels, buffers, work-groups, local memory, events and profiling, with complete programs and their output.

A map of memory-safety bugs in C and C++, from stack overflows to use-after-free and type confusion, with the habits, tools and flags that stop each one.

A bottom-up tour of how a computer runs your code: bits, memory, the CPU, caches, interrupts, DMA, virtual memory and the kernel, with C programs and output.

Learn I/O multiplexing in C: select, poll, epoll and kqueue compared, with event loops, edge and level triggering, partial I/O, timers and scaling across cores.

Learn threads from first principles in C with pthreads, C++ with std::thread and jthread, and Rust: create, join, share data, stop, name and debug them.

A complete guide to GNU Make for C: rules, variables, pattern rules, header dependencies, build directories, parallel builds, libraries and debugging.

Find memory errors, leaks, uninitialised reads and thread races in C and C++ with Valgrind, then profile heap and cache use, debug live and gate your CI.