Debugging with GDB, 10th Edition

The GNU Source-Level Debugger


Debugging with GDB, 10th Edition
Debugging with GDB, 10th Edition

Book Details

Authors Richard Stallman, Roland Pesch, Stan Shebs
Published 2021
Edition 10
Paperback 881 pages
Language English
ISBN-13 9780983159230
ISBN-10 0983159238
License GNU Free Documentation License

Book Description

The GNU Debugger allows you to see what is going on "inside" a program while it executes - or what a program was doing at the moment it crashed. GDB supports C, C++, Java, Fortran and Assembly among other languages; it is also designed to work closely with the GNU Compiler Collection (GCC). The GNU Debugger Program has four special features that helps you catch bugs in the act: It starts your program for you, specifying anything that might affect it's behavior. Makes your program stop under specified conditions. Examines what happened when the program stopped. Allows you to experiment with changes to see what effect they have on the program. This book will show you: setting and clearing breakpoints examining the stack, source files and data examining the symbol table altering program execution specifying a target for debugging how to control the debugger how to use canned command sequences how to install GDB and much more! This manual is written for programmers. It is designed so someone can begin utilizing GDB after just reading the first chapter, or read the whole manual and master the program. Synopsis of ideas and extensive examples are given.

The purpose of a debugger such as gdb is to allow you to see what is going on "inside" another program while it executes - or what another program was doing at the moment it crashed. gdb can do four main kinds of things (plus other things in support of these) to help you catch bugs in the act:
- Start your program, specifying anything that might affect its behavior;
- Make your program stop on specified conditions;
- Examine what has happened, when your program has stopped;
- Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another.


This book is available under the GNU Free Documentation License, which means that you are free to copy, redistribute, and modify it, as long as you preserve all original copyright notices, provide transparent access to the source, and release any modified versions under the same license.

If you enjoyed the book and would like to support the author, you can purchase a printed copy (hardcover or paperback) from official retailers.

Download and Read Links

PDF

Share This Book

[localhost]# find . -name "*Similar_Books*"


Managing Projects with GNU Make, 3rd Edition

Java C / C++

The utility simply known as make is one of the most enduring features of both Unix and other operating systems. First invented in the 1970s, make still turns up to this day as the central engine in most programming projects; it even builds the Linux kernel. In the third edition of the classic Managing Projects with GNU make, readers will learn why

Jenkins: The Definitive Guide

Jenkins

Streamline software development with Jenkins, the popular Java-based open source tool that has revolutionized the way teams think about Continuous Integration (CI). This complete guide shows you how to automate your build, integration, release, and deployment processes with Jenkins - and demonstrates how CI can save you time, money, and many headac

Asterisk: The Future of Telephony, 2nd Edition

Asterisk

This bestselling book is now the standard guide to building phone systems with Asterisk, the open source IP PBX that has traditional telephony providers running scared! Revised for the 1.4 release of the software, the new edition of Asterisk: The Future of Telephony reveals how you can save money on equipment and support, and finally be in control

Effective AWK Programming, 5th Edition

AWK

When processing text files, the awk language is ideal for handling data extraction, reporting, and data-reformatting jobs. This practical guide serves as both a reference and tutorial for POSIX-standard awk and for the GNU implementation, called gawk. This book is useful for novices and awk experts alike. In this thoroughly revised 5th edition, aut

Test-Driven Development with Python

Python Django JavaScript Selenium

By taking you through the development of a real web application from beginning to end, this hands-on guide demonstrates the practical advantages of test-driven development (TDD) with Python. You'll learn how to write and run tests before building each part of your app, and then develop the minimum amount of code required to pass those tests. The re

The Nature of Code

Java

How can we capture the unpredictable evolutionary and emergent properties of nature in software? How can understanding the mathematical principles behind our physical world help us to create digital worlds? This book focuses on a range of programming strategies and techniques behind computer simulations of natural systems, from elementary concepts