Intel(R) Debugger (IDB) Manual

Intel(R) Debugger (IDB) Manual

Intel® Debugger (IDB) Manual Document Number: 306363-002US Disclaimer and Legal Information INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL® PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER, AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. Intel products are not intended for use in medical, life saving, life sustaining, critical control or safety systems, or in nuclear facility applications. Intel may make changes to specifications and product descriptions at any time, without notice. The software described in this document may contain software defects which may cause the product to deviate from published specifications. Current characterized software defects are available on request. This document as well as the software described in it is furnished under license and may only be used or copied in accordance with the terms of the license. The information in this manual is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Intel Corporation. Intel Corporation assumes no responsibility or liability for any errors or inaccuracies that may appear in this document or any software that may be provided in association with this document. Except as permitted by such license, no part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or by any means without the express written consent of Intel Corporation. Developers must not rely on the absence or characteristics of any features or instructions marked "reserved" or "undefined." Improper use of reserved or undefined features or instructions may cause unpredictable behavior or failure in developer's software code when running on an Intel processor. Intel reserves these features or instructions for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from their unauthorized use. BunnyPeople, Celeron, Celeron Inside, Centrino, Centrino logo, Chips, Core Inside, Dialogic, EtherExpress, ETOX, FlashFile, i386, i486, i960, iCOMP, InstantIP, Intel, Intel logo, Intel386, Intel486, Intel740, IntelDX2, IntelDX4, IntelSX2, Intel Core, Intel Inside, Intel Inside logo, Intel. Leap ahead., Intel. Leap ahead. logo, Intel NetBurst, Intel NetMerge, Intel NetStructure, Intel SingleDriver, Intel SpeedStep, Intel StrataFlash, Intel Viiv, Intel XScale, IPLink, Itanium, Itanium Inside, MCS, MMX, MMX logo, Optimizer logo, OverDrive, Paragon, PDCharm, Pentium, Pentium II Xeon, Pentium III Xeon, Performance at Your Command, Pentium Inside, skoool, Sound Mark, The Computer Inside., The Journey Inside, VTune, Xeon, Xeon Inside and Xircom are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. * Other names and brands may be claimed as the property of others. Copyright (C) 2002-2006, Intel Corporation. Portions Copyright (C) 2001, Hewlett-Packard Development Company, L.P. iii Intel(R) Debugger (IDB) Manual Table Of Contents Disclaimer and Legal Information ................................................................................................ iii Introduction to Intel® Debugger (IDB)...........................................................................................1 Obtaining an Installation Kit ...................................................................................................1 About This Document ...................................................................................................................2 Organization ..........................................................................................................................2 Intended Audience.................................................................................................................2 Notation Conventions ............................................................................................................2 What's New in this Release ..........................................................................................................3 Reporting Problems ......................................................................................................................4 What to Report.......................................................................................................................4 Related Publications .....................................................................................................................4 Part I. A Quick Introduction to Using the Intel® Debugger............................................................5 About Using the Intel® Debugger. A Quick Introduction........................................................5 Making Simple Use of the Debugger. Overview ....................................................................5 Preparing a Program for Debugging. Simple Debugging ......................................................6 Starting the Debugger. Simple Debugging ............................................................................6 Entering Debugger Commands .............................................................................................9 Scripting or Repeating Previous Commands. Simple Debugging .........................................9 Context for Executing Commands .......................................................................................10 Running a Program Under Debugger Control .....................................................................10 Pausing the Process at the Problem ...................................................................................11 Examining the Paused Process...........................................................................................13 iv Table Of Contents Looking at the Source Files. Simple Debugging..................................................................14 Looking at the Threads. Simple Debugging.........................................................................15 Looking at the Call Stack. Simple Debugging......................................................................17 Looking at the Data. Simple Debugging ..............................................................................18 Looking at the Signal State..................................................................................................18 Looking at the Generated Code. Simple Debugging ...........................................................19 Looking at the Registers ......................................................................................................20 Continuing Execution of the Process. Simple Debugging ...................................................22 Snapshots as an Undo Mechanism .....................................................................................26 Part II. A Guide to Using the Intel® Debugger ............................................................................29 A Guide to Using the Intel® Debugger ................................................................................29 Preparing a Program for Debugging. Expert Debugging. Overview ....................................29 Preparing Your Source Code...............................................................................................29 Preparing the Compiler and Linker Environment.................................................................30 Starting the Debugger. Expert Debugging. Overview..........................................................30 Starting the Debugger from a Command Line .....................................................................30 DBX mode options...............................................................................................................33 GDB mode options ..............................................................................................................35 Starting the Debugger Using Emacs* ..................................................................................35 Running IDB in Default (DBX) Mode ...................................................................................36 Running IDB in GDB Mode..................................................................................................37 Starting the Debugger Using DDD* .....................................................................................38 Starting the Debugger Using Eclipse* .................................................................................38 Starting Eclipse* ..................................................................................................................39 v Intel(R) Debugger (IDB) Manual Debugging with the Intel® Debugger in Eclipse*.................................................................41 Ending a Debugging Session ..............................................................................................45 Getting Help.........................................................................................................................46 Giving Commands to the Debugger. Overview ...................................................................46

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    328 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us