134 lines
8.7 KiB
HTML
134 lines
8.7 KiB
HTML
<HTML>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<!-- Created on November, 24 2002 by texi2html 1.64 -->
|
|
<!--
|
|
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
|
|
Karl Berry <karl@freefriends.org>
|
|
Olaf Bachmann <obachman@mathematik.uni-kl.de>
|
|
and many others.
|
|
Maintained by: Olaf Bachmann <obachman@mathematik.uni-kl.de>
|
|
Send bugs and suggestions to <texi2html@mathematik.uni-kl.de>
|
|
|
|
-->
|
|
<HEAD>
|
|
<TITLE>Debugging with GDB: Debugging with GDB</TITLE>
|
|
|
|
<META NAME="description" CONTENT="Debugging with GDB: Debugging with GDB">
|
|
<META NAME="keywords" CONTENT="Debugging with GDB: Debugging with GDB">
|
|
<META NAME="resource-type" CONTENT="document">
|
|
<META NAME="distribution" CONTENT="global">
|
|
<META NAME="Generator" CONTENT="texi2html 1.64">
|
|
|
|
</HEAD>
|
|
|
|
<BODY LANG="" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080" ALINK="#FF0000">
|
|
|
|
<A NAME="SEC_Top"></A>
|
|
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
|
|
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="gdb.html#SEC_Top">Top</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="gdb_toc.html#SEC_Contents">Contents</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="gdb_35.html#SEC643">Index</A>]</TD>
|
|
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="gdb_abt.html#SEC_About"> ? </A>]</TD>
|
|
</TR></TABLE>
|
|
<H1>Debugging with GDB</H1></P><P>
|
|
|
|
This file describes GDB, the GNU symbolic debugger.
|
|
</P><P>
|
|
|
|
This is the Ninth Edition, June 2002, for GDB Version
|
|
20021125.
|
|
</P><P>
|
|
|
|
Copyright (C) 1988-2002 Free Software Foundation, Inc.
|
|
</P><P>
|
|
|
|
<BLOCKQUOTE><TABLE BORDER=0 CELLSPACING=0>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_1.html#SEC1">Summary of GDB</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_2.html#SEC5">1. A Sample GDB Session</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">A sample GDB session</TD></TR>
|
|
</TABLE>
|
|
|
|
<br>
|
|
<TABLE BORDER=0 CELLSPACING=0>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_3.html#SEC6">2. Getting In and Out of GDB</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Getting in and out of GDB</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_4.html#SEC12">3. GDB Commands</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">GDB commands</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_5.html#SEC16">4. Running Programs Under GDB</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Running programs under GDB</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_6.html#SEC27">5. Stopping and Continuing</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Stopping and continuing</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_7.html#SEC41">6. Examining the Stack</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Examining the stack</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_8.html#SEC46">7. Examining Source Files</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Examining source files</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_9.html#SEC53">8. Examining Data</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Examining data</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_10.html#SEC73">9. C Preprocessor Macros</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Preprocessor Macros</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_11.html#SEC74">10. Tracepoints</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Debugging remote targets non-intrusively</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_12.html#SEC87">11. Debugging Programs That Use Overlays</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Debugging programs that use overlays</TD></TR>
|
|
</TABLE>
|
|
|
|
<br>
|
|
<TABLE BORDER=0 CELLSPACING=0>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_13.html#SEC92">12. Using GDB with Different Languages</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Using GDB with different languages</TD></TR>
|
|
</TABLE>
|
|
|
|
<br>
|
|
<TABLE BORDER=0 CELLSPACING=0>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_14.html#SEC119">13. Examining the Symbol Table</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Examining the symbol table</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_15.html#SEC120">14. Altering Execution</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Altering execution</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_16.html#SEC127">15. GDB Files</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">GDB files</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_17.html#SEC130">16. Specifying a Debugging Target</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Specifying a debugging target</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_18.html#SEC136">17. Debugging remote programs</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_19.html#SEC143">18. Configuration-Specific Information</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Configuration-specific information</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_20.html#SEC184">19. Controlling GDB</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_21.html#SEC192">20. Canned Sequences of Commands</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Canned sequences of commands</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_22.html#SEC197">21. GDB Text User Interface</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_23.html#SEC203">22. Using GDB under GNU Emacs</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_24.html#SEC204">23. GDB Annotations</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">GDB's annotation interface.</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_25.html#SEC217">24. The GDB/MI Interface</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">GDB's Machine Interface.</TD></TR>
|
|
</TABLE>
|
|
|
|
<br>
|
|
<TABLE BORDER=0 CELLSPACING=0>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_26.html#SEC595">25. Reporting Bugs in GDB</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">Reporting bugs in GDB</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_29.html#SEC625">A. Formatting Documentation</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">How to format and print GDB documentation</TD></TR>
|
|
</TABLE>
|
|
|
|
<br>
|
|
<TABLE BORDER=0 CELLSPACING=0>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_27.html#SEC598">26. Command Line Editing</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_28.html#SEC620">27. Using History Interactively</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_30.html#SEC626">B. Installing GDB</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_31.html#SEC630">C. Maintenance Commands</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_32.html#SEC631">D. GDB Remote Serial Protocol</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_33.html#SEC638">E. GNU GENERAL PUBLIC LICENSE</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">GNU General Public License says
|
|
how you can copy and share GDB</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_34.html#SEC641">F. GNU Free Documentation License</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP">The license for this documentation</TD></TR>
|
|
<TR><TD ALIGN="left" VALIGN="TOP"><A HREF="gdb_35.html#SEC643">Index</A></TD><TD> </TD><TD ALIGN="left" VALIGN="TOP"></TD></TR>
|
|
</TABLE></BLOCKQUOTE>
|
|
<P>
|
|
|
|
<HR SIZE=1>
|
|
<BR>
|
|
<FONT SIZE="-1">
|
|
|
|
<address>
|
|
|
|
<p>Please send FSF & GNU inquiries & questions to <a
|
|
href="mailto:gnu@gnu.org">gnu@gnu.org</a>. There are also <a
|
|
href="http://www.gnu.org/home.html#ContactInfo">other ways to
|
|
contact</a> the FSF.</p>
|
|
|
|
<p>These pages are maintained by <a
|
|
href="http://www.gnu.org/software/gdb/">the GDB developers</a>.</p>
|
|
|
|
<p>Copyright Free Software Foundation, Inc., 59 Temple Place - Suite
|
|
330, Boston, MA 02111, USA.</p>
|
|
|
|
<p>Verbatim copying and distribution of this entire article is
|
|
permitted in any medium, provided this notice is preserved.</p>
|
|
|
|
</address>
|
|
|
|
This document was generated
|
|
by <I>GDB Administrator</I> on <I>November, 24 2002</I>
|
|
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
|
"><I>texi2html</I></A>
|
|
|
|
</BODY>
|
|
</HTML>
|