没有合适的资源?快使用搜索试试~ 我知道了~
debug with GDB 2010版
5星 · 超过95%的资源 需积分: 10 18 下载量 172 浏览量
2011-05-13
10:51:55
上传
评论
收藏 3.42MB PDF 举报
温馨提示
试读
592页
debug with gdb, 2010版; pdf 592 pages; 有目录和索引。
资源推荐
资源详情
资源评论
This file documents the gnu debugger gdb.
This is the Ninth Edition, of Debugging with gdb: the gnu Source-Level Debugger for gdb (GDB) Version
7.3.50.20110513.
Copyright © 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free
Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the
Invariant Sections being “Free Software” and “Free Software Needs Free Documentation”, with the
Front-Cover Texts being “A GNU Manual,” and with the Back-Cover Texts as in (a) below.
(a) The FSF's Back-Cover Text is: “You are free to copy and modify this GNU Manual. Buying copies from
GNU Press supports the FSF in developing GNU and promoting software freedom.”
Next: Summary, Previous: (dir), Up: (dir)
Debugging with gdb
This file describes gdb, the gnu symbolic debugger.
This is the Ninth Edition, for gdb (GDB) Version 7.3.50.20110513.
Copyright (C) 1988-2010 Free Software Foundation, Inc.
This edition of the GDB manual is dedicated to the memory of Fred Fish. Fred was a long-standing
contributor to GDB and to Free software in general. We will miss him.
Summary: Summary of gdb•
Sample Session: A sample gdb session•
Invocation: Getting in and out of gdb•
Commands: gdb commands•
Running: Running programs under gdb•
Stopping: Stopping and continuing•
Reverse Execution: Running programs backward•
Process Record and Replay: Recording inferior's execution and replaying it•
Stack: Examining the stack•
Source: Examining source files•
Data: Examining data•
Optimized Code: Debugging optimized code•
Macros: Preprocessor Macros•
Tracepoints: Debugging remote targets non-intrusively•
Overlays: Debugging programs that use overlays•
Languages: Using gdb with different languages•
Symbols: Examining the symbol table•
Altering: Altering execution•
GDB Files: gdb files•
Targets: Specifying a debugging target•
Remote Debugging: Debugging remote programs•
Debugging with GDB
Debugging with gdb 1
Configurations: Configuration-specific information•
Controlling GDB: Controlling gdb•
Extending GDB: Extending gdb•
Interpreters: Command Interpreters•
TUI: gdb Text User Interface•
Emacs: Using gdb under gnu Emacs•
GDB/MI: gdb's Machine Interface.•
Annotations: gdb's annotation interface.•
JIT Interface: Using the JIT debugging interface.•
GDB Bugs: Reporting bugs in gdb•
Command Line Editing: Command Line Editing•
Using History Interactively: Using History Interactively•
In Memoriam: In Memoriam•
Formatting Documentation: How to format and print gdb documentation•
Installing GDB: Installing GDB•
Maintenance Commands: Maintenance Commands•
Remote Protocol: GDB Remote Serial Protocol•
Agent Expressions: The GDB Agent Expression Mechanism•
Target Descriptions: How targets can describe themselves to gdb•
Operating System Information: Getting additional information from the operating system•
Trace File Format: GDB trace file format•
Index Section Format: .gdb_index section format•
Copying: GNU General Public License says how you can copy and share GDB•
GNU Free Documentation License: The license for this documentation•
Index: Index•
Table of Contents
Debugging with gdb•
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
2.1.1 Choosing Files◊
2.1.2 Choosing Modes◊
2.1.3 What gdb Does During Startup◊
♦
2.2 Quitting gdb♦
2.3 Shell Commands♦
2.4 Logging Output♦
•
3 gdb Commands
3.1 Command Syntax♦
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♦
•
Debugging with GDB
Table of Contents 2
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 Multiple Inferiors and Programs♦
4.10 Debugging Programs with Multiple Threads♦
4.11 Debugging Forks♦
4.12 Setting a Bookmark to Return to Later
4.12.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 How to save breakpoints to a file◊
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
5.4.1 All-Stop Mode◊
5.4.2 Non-Stop Mode◊
5.4.3 Background Execution◊
5.4.4 Thread-Specific Breakpoints◊
5.4.5 Interrupted System Calls◊
5.4.6 Observer Mode◊
♦
•
6 Running programs backward•
7 Recording Inferior's Execution and Replaying It•
8 Examining the Stack
8.1 Stack Frames♦
8.2 Backtraces♦
8.3 Selecting a Frame♦
8.4 Information About a Frame♦
•
9 Examining Source Files
9.1 Printing Source Lines♦
9.2 Specifying a Location♦
9.3 Editing Source Files
9.3.1 Choosing your Editor◊
♦
9.4 Searching Source Files♦
9.5 Specifying Source Directories♦
9.6 Source and Machine Code♦
•
10 Examining Data
10.1 Expressions♦
10.2 Ambiguous Expressions♦
10.3 Program Variables♦
10.4 Artificial Arrays♦
•
Debugging with GDB
Table of Contents 3
10.5 Output Formats♦
10.6 Examining Memory♦
10.7 Automatic Display♦
10.8 Print Settings♦
10.9 Pretty Printing
10.9.1 Pretty-Printer Introduction◊
10.9.2 Pretty-Printer Example◊
10.9.3 Pretty-Printer Commands◊
♦
10.10 Value History♦
10.11 Convenience Variables♦
10.12 Registers♦
10.13 Floating Point Hardware♦
10.14 Vector Unit♦
10.15 Operating System Auxiliary Information♦
10.16 Memory Region Attributes
10.16.1 Attributes
10.16.1.1 Memory Access Mode⋅
10.16.1.2 Memory Access Size⋅
10.16.1.3 Data Cache⋅
◊
10.16.2 Memory Access Checking◊
♦
10.17 Copy Between Memory and a File♦
10.18 How to Produce a Core File from Your Program♦
10.19 Character Sets♦
10.20 Caching Data of Remote Targets♦
10.21 Search Memory♦
11 Debugging Optimized Code
11.1 Inline Functions♦
•
12 C Preprocessor Macros•
13 Tracepoints
13.1 Commands to Set Tracepoints
13.1.1 Create and Delete Tracepoints◊
13.1.2 Enable and Disable Tracepoints◊
13.1.3 Tracepoint Passcounts◊
13.1.4 Tracepoint Conditions◊
13.1.5 Trace State Variables◊
13.1.6 Tracepoint Action Lists◊
13.1.7 Listing Tracepoints◊
13.1.8 Listing Static Tracepoint Markers◊
13.1.9 Starting and Stopping Trace Experiments◊
13.1.10 Tracepoint Restrictions◊
♦
13.2 Using the Collected Data
13.2.1 tfind n◊
13.2.2 tdump◊
13.2.3 save tracepoints filename◊
♦
13.3 Convenience Variables for Tracepoints♦
13.4 Using Trace Files♦
•
14 Debugging Programs That Use Overlays
14.1 How Overlays Work♦
14.2 Overlay Commands♦
14.3 Automatic Overlay Debugging♦
14.4 Overlay Sample Program♦
•
Debugging with GDB
Table of Contents 4
15 Using gdb with Different Languages
15.1 Switching Between Source Languages
15.1.1 List of Filename Extensions and Languages◊
15.1.2 Setting the Working Language◊
15.1.3 Having gdb Infer the Source Language◊
♦
15.2 Displaying the Language♦
15.3 Type and Range Checking
15.3.1 An Overview of Type Checking◊
15.3.2 An Overview of Range Checking◊
♦
15.4 Supported Languages
15.4.1 C and C++
15.4.1.1 C and C++ Operators⋅
15.4.1.2 C and C++ Constants⋅
15.4.1.3 C++ Expressions⋅
15.4.1.4 C and C++ Defaults⋅
15.4.1.5 C and C++ Type and Range Checks⋅
15.4.1.6 gdb and C⋅
15.4.1.7 gdb Features for C++⋅
15.4.1.8 Decimal Floating Point format⋅
◊
15.4.2 D◊
15.4.3 Objective-C
15.4.3.1 Method Names in Commands⋅
15.4.3.2 The Print Command With Objective-C⋅
◊
15.4.4 OpenCL C
15.4.4.1 OpenCL C Datatypes⋅
15.4.4.2 OpenCL C Expressions⋅
15.4.4.3 OpenCL C Operators⋅
◊
15.4.5 Fortran
15.4.5.1 Fortran Operators and Expressions⋅
15.4.5.2 Fortran Defaults⋅
15.4.5.3 Special Fortran Commands⋅
◊
15.4.6 Pascal◊
15.4.7 Modula-2
15.4.7.1 Operators⋅
15.4.7.2 Built-in Functions and Procedures⋅
15.4.7.3 Constants⋅
15.4.7.4 Modula-2 Types⋅
15.4.7.5 Modula-2 Defaults⋅
15.4.7.6 Deviations from Standard Modula-2⋅
15.4.7.7 Modula-2 Type and Range Checks⋅
15.4.7.8 The Scope Operators :: and .⋅
15.4.7.9 gdb and Modula-2⋅
◊
15.4.8 Ada
15.4.8.1 Introduction⋅
15.4.8.2 Omissions from Ada⋅
15.4.8.3 Additions to Ada⋅
15.4.8.4 Stopping at the Very Beginning⋅
15.4.8.5 Extensions for Ada Tasks⋅
15.4.8.6 Tasking Support when Debugging Core Files⋅
15.4.8.7 Tasking Support when using the Ravenscar Profile⋅
15.4.8.8 Known Peculiarities of Ada Mode⋅
◊
♦
Debugging with GDB
Table of Contents 5
剩余591页未读,继续阅读
资源评论
- u0119445252014-11-17不用说,linux/unix下面调试程序的必读书。
- tongguozhuce2014-10-31还不错,谢谢分享
- cappletree2014-07-06debug with gdb, 2010版;
网迷
- 粉丝: 38
- 资源: 336
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功