Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword or section
Like this

Table Of Contents

Summary of gdb
Free software
Free Software Needs Free Documentation
Contributors to gdb
1 A Sample gdb Session
2 Getting In and Out of gdb
2.1 Invoking gdb
3.2 Command completion
3.3 Getting help
4 Running Programs Under gdb
4.1 Compiling for debugging
4.2 Starting your program
4.3 Your program’s arguments
4.4 Your program’s environment
4.5 Your program’s working directory
4.6 Your program’s input and output
4.7 Debugging an already-running process
4.8 Killing the child process
4.9 Debugging programs with multiple threads
4.10 Debugging programs with multiple processes
4.11 Setting a bookmark to return to later
4.11.1 A non-obvious benefit of using checkpoints
5 Stopping and Continuing
5.1 Breakpoints, watchpoints, and catchpoints
5.1.1 Setting breakpoints
5.1.2 Setting watchpoints
5.1.3 Setting catchpoints
5.1.4 Deleting breakpoints
5.1.5 Disabling breakpoints
5.1.6 Break conditions
5.1.7 Breakpoint command lists
5.1.8 Breakpoint menus
5.1.9 “Cannot insert breakpoints”
5.1.10 “Breakpoint address adjusted...”
5.2 Continuing and stepping
5.3 Signals
5.4 Stopping and starting multi-thread programs
6 Examining the Stack
6.1 Stack frames
6.2 Backtraces
6.3 Selecting a frame
6.4 Information about a frame
7 Examining Source Files
7.1 Printing source lines
7.2 Editing source files
7.2.1 Choosing your editor
7.3 Searching source files
7.4 Specifying source directories
7.5 Source and machine code
8 Examining Data
8.1 Expressions
8.2 Program variables
8.3 Artificial arrays
8.4 Output formats
8.5 Examining memory
8.6 Automatic display
8.7 Print settings
8.8 Value history
8.9 Convenience variables
8.10 Registers
8.11 Floating point hardware
8.12 Vector Unit
8.13 Operating system auxiliary information
9 C Preprocessor Macros
10 Tracepoints
10.1 Commands to Set Tracepoints
10.1.1 Create and Delete Tracepoints
10.1.2 Enable and Disable Tracepoints
10.1.3 Tracepoint Passcounts
10.1.4 Tracepoint Action Lists
10.1.5 Listing Tracepoints
10.1.6 Starting and Stopping Trace Experiment
10.2 Using the collected data
10.2.1 tfind n
10.2.2 tdump
10.2.3 save-tracepoints filename
10.3 Convenience Variables for Tracepoints
11.1 How Overlays Work
11.2 Overlay Commands
11.3 Automatic Overlay Debugging
11.4 Overlay Sample Program
Chapter 12: Using gdb with Different Languages 115
12 Using gdb with Different Languages
12.1 Switching between source languages
12.1.1 List of filename extensions and languages
12.1.2 Setting the working language
12.1.3 Having gdb infer the source language
12.2 Displaying the language
12.3 Type and range checking
12.3.1 An overview of type checking
12.3.2 An overview of range checking
12.4 Supported languages
12.4.1 C and C++ C and C++ operators C and C++ constants C++ expressions C and C++ defaults C and C++ type and range checks gdb and C gdb features for C++
12.4.2 Objective-C Method Names in Commands The Print Command With Objective-C
12.4.3 Fortran Fortran operators and expressions Fortran Defaults Special Fortran commands
12.4.4 Pascal
12.4.5 Modula-2 Operators Built-in functions and procedures Constants Modula-2 Types Modula-2 defaults Deviations from standard Modula-2 Modula-2 type and range checks The scope operators :: and gdb and Modula-2
12.4.6 Ada Introduction Omissions from Ada Additions to Ada Stopping at the Very Beginning Known Peculiarities of Ada Mode
12.5 Unsupported languages
13 Examining the Symbol Table
14 Altering Execution
14.1 Assignment to variables
14.2 Continuing at a different address
14.3 Giving your program a signal
14.4 Returning from a function
14.5 Calling program functions
14.6 Patching programs
15 gdb Files
15.1 Commands to specify files
15.2 Debugging Information in Separate Files
15.3 Errors reading symbol files
16 Specifying a Debugging Target
16.1 Active targets
16.2 Commands for managing targets
16.3 Choosing target byte order
16.4 Remote debugging
17 Debugging remote programs
17.1 Connecting to a remote target
17.2 Using the gdbserver program
17.3 Remote configuration
17.4 Implementing a remote stub
17.4.1 What the stub can do for you
17.4.2 What you must do for the stub
17.4.3 Putting it all together
18 Configuration-Specific Information
18.1 Native
18.1.1 HP-UX
18.1.2 BSD libkvm Interface
18.1.3 SVR4 process information
18.1.4 Features for Debugging djgpp Programs
18.1.5 Features for Debugging MS Windows PE executables Support for DLLs without debugging symbols DLL name prefixes Working with minimal symbols
18.1.6 Commands specific to gnu Hurd systems
18.1.7 QNX Neutrino
18.2 Embedded Operating Systems
18.2.1 Using gdb with VxWorks Connecting to VxWorks VxWorks download Running tasks
18.3 Embedded Processors
18.3.1 ARM
18.3.2 Renesas H8/300 Connecting to Renesas boards Using the E7000 in-circuit emulator Special gdb commands for Renesas micros
18.3.3 H8/500
18.3.4 Renesas M32R/D and M32R/SDI
18.3.5 M68k
18.3.6 MIPS Embedded
18.3.7 OpenRISC 1000
18.3.8 PowerPC
18.3.9 HP PA Embedded
18.3.10 Renesas SH
18.3.11 Tsqware Sparclet Setting file to debug Connecting to Sparclet Sparclet download Running and debugging
18.3.12 Fujitsu Sparclite
18.3.13 Tandem ST2000
18.3.14 Zilog Z8000
18.3.15 Atmel AVR
18.3.16 CRIS
18.3.17 Renesas Super-H
18.3.18 Windows CE
18.4 Architectures
18.4.1 x86 Architecture-specific issues
18.4.2 A29K
18.4.3 Alpha
18.4.4 MIPS
18.4.5 HPPA
19 Controlling gdb
19.1 Prompt
19.2 Command editing
19.3 Command history
19.4 Screen size
19.5 Numbers
19.6 Configuring the current ABI
19.7 Optional warnings and messages
19.8 Optional messages about internal happenings
20 Canned Sequences of Commands
20.1 User-defined commands
20.2 User-defined command hooks
20.3 Command files
20.4 Commands for controlled output
21 Command Interpreters
22 gdb Text User Interface
22.1 TUI overview
22.2 TUI Key Bindings
22.3 TUI Single Key Mode
22.4 TUI specific commands
22.5 TUI configuration variables
23 Using gdb under gnu Emacs
24 The gdb/mi Interface
Function and Purpose
Notation and Terminology
24.3 gdb/mi Command Syntax
24.3.1 gdb/mi Input Syntax
24.3.2 gdb/mi Output Syntax
24.4 gdb/mi Compatibility with CLI
24.5 gdb/mi Development and Front Ends
24.6 gdb/mi Output Records
24.6.1 gdb/mi Result Records
24.6.2 gdb/mi Stream Records
24.6.3 gdb/mi Out-of-band Records
24.7 Simple Examples of gdb/mi Interaction
24.8 gdb/mi Command Description Format
24.9 gdb/mi Breakpoint Commands
24.10 gdb/mi Program Context
24.11 gdb/mi Thread Commands
24.12 gdb/mi Program Execution
24.13 gdb/mi Stack Manipulation Commands
24.14 gdb/mi Variable Objects
-var-list-children n
24.17 gdb/mi Symbol Query Commands
24.18 gdb/mi File Commands
24.19 gdb/mi Target Manipulation Commands
24.20 Miscellaneous gdb/mi Commands
25 gdb Annotations
25.1 What is an Annotation?
25.2 Annotation for gdb Input
25.3 Errors
25.4 Invalidation Notices
25.5 Running the Program
25.6 Displaying Source
26 Reporting Bugs in gdb
26.1 Have you found a bug?
26.2 How to report bugs
27 Command Line Editing
27.1 Introduction to Line Editing
27.2 Readline Interaction
27.2.1 Readline Bare Essentials
27.2.2 Readline Movement Commands
27.2.3 Readline Killing Commands
27.2.4 Readline Arguments
27.2.5 Searching for Commands in the History
27.3 Readline Init File
27.3.1 Readline Init File Syntax
27.3.2 Conditional Init Constructs
27.3.3 Sample Init File
27.4 Bindable Readline Commands
27.4.1 Commands For Moving
27.4.2 Commands For Manipulating The History
27.4.3 Commands For Changing Text
27.4.4 Killing And Yanking
27.4.5 Specifying Numeric Arguments
27.4.6 Letting Readline Type For You
27.4.7 Keyboard Macros
27.4.8 Some Miscellaneous Commands
27.5 Readline vi Mode
28 Using History Interactively
28.1 History Expansion
28.1.1 Event Designators
28.1.2 Word Designators
28.1.3 Modifiers
Appendix A Formatting Documentation
Appendix B Installing gdb
B.1 Requirements for building gdb
B.2 Invoking the gdb configure script
B.3 Compiling gdb in another directory
B.4 Specifying names for hosts and targets
B.5 configure options
Appendix C Maintenance Commands
Appendix D gdb Remote Serial Protocol
D.1 Overview
D.2 Packets
D.3 Stop Reply Packets
D.4 General Query Packets
D.5 Register Packet Format
D.6 Tracepoint Packets
D.7 Interrupts
D.8 Examples
D.9 File-I/O remote protocol extension
D.9.1 File-I/O Overview
D.9.2 Protocol basics
D.9.3 The F request packet
D.9.4 The F reply packet
D.9.5 The ‘Ctrl-C’ message
D.9.6 Console I/O
D.9.7 List of supported calls
D.9.8 Protocol specific representation of datatypes
Integral datatypes
Pointer values
Memory transfer
struct stat
struct timeval
D.9.9 Constants
Open flags
mode t values
Errno values
Lseek flags
D.9.10 File-I/O Examples
D.10 Memory map format
E.1 General Bytecode Design
E.2 Bytecode Descriptions
E.3 Using Agent Expressions
E.4 Varying Target Capabilities
E.5 Tracing on Symmetrix
E.6 Rationale
How to Apply These Terms to Your New Programs
G.1 ADDENDUM: How to use this License for your documents
0 of .
Results for:
No results containing your search query
P. 1


Ratings: (0)|Views: 7|Likes:
Published by karthikeyan1171

More info:

Published by: karthikeyan1171 on Jul 28, 2011
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





You're Reading a Free Preview
Pages 9 to 23 are not shown in this preview.
You're Reading a Free Preview
Pages 32 to 101 are not shown in this preview.
You're Reading a Free Preview
Pages 110 to 272 are not shown in this preview.
You're Reading a Free Preview
Pages 281 to 401 are not shown in this preview.
You're Reading a Free Preview
Pages 410 to 418 are not shown in this preview.

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->