Red Hat ENTERPRISE LINUX 3 - DEVELOPER TOOLS GUIDE User's Guide Page 63

  • Download
  • Add to my manuals
  • Print
  • Page
    / 100
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 62
Chapter 5.
53
Debugging
Useful, well-written software generally goes through different phases of application development,
and mistakes can occur in each phase. Some phases come with their own set of mechanisms to
detect certain mistakes; during compilation, for example, most compilers perform elementary semantic
analysis, making sure objects such as variables and functions are adequately described.
The error-checking mechanisms of each application development phase helps catch simple and
obvious mistakes in code. The debugging phase helps catch more subtle errors; ones that fell through
the cracks during routine code inspection.
5.1. Installing Debuginfo Packages
Red Hat Enterprise Linux also provides -debuginfo packages for all architecture-dependent RPMs
included in the operating system. A -debuginfo package contains accurate debugging information
for its corresponding package. To install the -debuginfo package of a package (i.e. typically
packagename-debuginfo), use the following command:
debuginfo-install packagename
Note
Attempting to debug a package without having its -debuginfo equivalent installed may fail,
although GDB will try to provide any helpful diagnostics it can.
5.2. GDB
Fundamentally, like most debuggers, GDB manages the execution of compiled code in a very closely
controlled environment. This environment makes possible the following fundamental mechanisms
necessary to the operation of GDB:
Inspect and modify memory within the code being debugged (e.g. reading and setting variables).
Control the execution state of the code being debugged, principally whether it's running or stopped.
Detect the execution of particular sections of code (e.g. stop running code when it reaches a
specified area of interest to the programmer).
Detect access to particular areas of memory (e.g. stop running code when it accesses a specified
variable).
Execute portions of code (from an otherwise stopped program) in a controlled manner.
Detect various programmatic asynchronous events such as signals.
The operation of these mechanisms rely mostly on information produced by a compiler. For example,
to view the value of a variable, GDB has to know:
The location of the variable in memory
The nature of the variable
This means that displaying a double-precision floating point value requires a very different process
from displaying a string of characters. For something complex like a structure, GDB has to know
Page view 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 99 100

Comments to this Manuals

No comments

Panasonic RR-US950E-K manuels

Manuels d'utilisation et guides de l'utilisateur pour Enregistreurs vocaux Panasonic RR-US950E-K.
Nous fournissons des manuels en pdf 1 Panasonic RR-US950E-K à télécharger gratuitement par type de document : Manuel de l'utilisateur






Plus de produits et de manuels pour Enregistreurs vocaux Panasonic

Modèles Type de document
RR-US490E-K Manuel de l'utilisateur     Инструкция по эксплуатации Panasonic RR-US490E-K, 11 pages
RR-US470 Manuel de l'utilisateur   Инструкция по эксплуатации Panasonic RR-US470, 20 pages
RR-US490 E-K Manuel de l'utilisateur       Инструкция по эксплуатации Panasonic RR-US490 E-K, 140 pages
RR-US050 Manuel de l'utilisateur   Инструкция по эксплуатации Panasonic RR-US050, 6 pages
RR-US950 Manuel de l'utilisateur   Panasonic RR-US950 User Manual, 48 pages
H1208TY0 Manuel de l'utilisateur   Panasonic H1208TY0 User Manual, 44 pages
PQT8531-P Manuel de l'utilisateur   Panasonic PQT8531-P User Manual, 2 pages
RR-US430 Manuel de l'utilisateur   Panasonic RR-US430 User Manual, 44 pages
RQT8841-P Manuel de l'utilisateur   Panasonic RQT8841-P User Manual, 36 pages
RR-US591 Manuel de l'utilisateur   Инструкция по эксплуатации Panasonic RR-US591, 52 pages
RR-US570 Manuel de l'utilisateur   Инструкция по эксплуатации Panasonic RR-US570, 12 pages
RR-US380 Manuel de l'utilisateur   Инструкция по эксплуатации Panasonic RR-US380, 6 pages
RX-FT560 Manuel de l'utilisateur   Panasonic RX-FT560 User Manual, 12 pages
RR-US361 Manuel de l'utilisateur     Инструкция по эксплуатации Panasonic RR-US361, 22 pages
RQ-L470 Manuel de l'utilisateur    Инструкция по эксплуатации Panasonic RQ-L470, 8 pages
RR-US395 Manuel de l'utilisateur   Инструкция по эксплуатации Panasonic RR-US395, 9 pages
RN-502 Manuel de l'utilisateur   Panasonic RN-502 User Manual, 5 pages
RN-102 Manuel de l'utilisateur   Panasonic RN-102 User Manual, 2 pages
RX-FT500 Manuel de l'utilisateur   Panasonic RX-FT500 User Manual, 10 pages
RC-X260 Manuel de l'utilisateur   Panasonic RC-X260 User Manual, 28 pages