没有合适的资源?快使用搜索试试~ 我知道了~
Debugging_with_GDB.pdf
需积分: 5 11 下载量 113 浏览量
2022-03-13
16:15:39
上传
评论
收藏 9.78MB PDF 举报
温馨提示
试读
1744页
Debugging_with_GDB.pdf
资源详情
资源评论
资源推荐
Debugging with GDB
This file documents the GNU debugger GDB.
This is the Tenth Edition, of
Debugging with GDB: the GNU Source-Level
Debugger
for GDB (GDB) Version 7.8.50.20140825-cvs.
Copyright © 1988-2014 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) [Contents][Index]
Debugging with GDB
This file describes GDB, the GNU symbolic debugger.
This is the Tenth Edition, for GDB (GDB) Version 7.8.50.20140825-cvs.
Copyright (C) 1988-2014 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: GDBcommands
• 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: GDBfiles
• Targets: Specifying a debugging target
• Remote Debugging: Debugging remote programs
• Configurations: Configuration-specific information
• Controlling GDB: Controlling GDB
• Extending GDB: Extending GDB
• Interpreters: Command Interpreters
• TUI: GDBText 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.
• In-Process Agent: In-Process Agent
• 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
• Man Pages: Manual pages
• Copying: GNU General Public License says how you can
copy and share GDB
• GNU Free Documentation
License:
The license for this documentation
• Concept Index: Index of GDB concepts
• Command and Variable
Index:
Index of GDB commands, variables, functions,
and Python data types
Table of Contents
Summary of GDB
o Free Software
o Free Software Needs Free Documentation
o 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
o
2.2 Quitting GDB
o
2.3 Shell Commands
o
2.4 Logging Output
3 GDB Commands
o 3.1 Command Syntax
o 3.2 Command Completion
o
3.3 Getting Help
4 Running Programs Under GDB
o 4.1 Compiling for Debugging
o 4.2 Starting your Program
o 4.3 Your Program’s Arguments
o 4.4 Your Program’s Environment
o 4.5 Your Program’s Working Directory
o 4.6 Your Program’s Input and Output
o 4.7 Debugging an Already-running Process
o 4.8 Killing the Child Process
o 4.9 Debugging Multiple Inferiors and Programs
o 4.10 Debugging Programs with Multiple Threads
o 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 Dynamic Printf
5.1.9 How to save breakpoints to a file
5.1.10 Static Probe Points
5.1.11 “Cannot insert breakpoints”
5.1.12 “Breakpoint address adjusted...”
o
5.2 Continuing and Stepping
o
5.3 Skipping Over Functions and Files
o
5.4 Signals
5.5 Stopping and Starting Multi-thread Programs
5.5.1 All-Stop Mode
5.5.2 Non-Stop Mode
5.5.3 Background Execution
5.5.4 Thread-Specific Breakpoints
5.5.5 Interrupted System Calls
5.5.6 Observer Mode
6 Running programs backward
7 Recording Inferior’s Execution and Replaying It
8 Examining the Stack
o 8.1 Stack Frames
o 8.2 Backtraces
o 8.3 Management of Frame Filters.
o 8.4 Selecting a Frame
o 8.5 Information About a Frame
9 Examining Source Files
o 9.1 Printing Source Lines
o 9.2 Specifying a Location
9.3 Editing Source Files
9.3.1 Choosing your Editor
o
9.4 Searching Source Files
o
9.5 Specifying Source Directories
o
9.6 Source and Machine Code
10 Examining Data
o 10.1 Expressions
o 10.2 Ambiguous Expressions
o 10.3 Program Variables
o 10.4 Artificial Arrays
o 10.5 Output Formats
o 10.6 Examining Memory
o 10.7 Automatic Display
o 10.8 Print Settings
10.9 Pretty Printing
10.9.1 Pretty-Printer Introduction
剩余1743页未读,继续阅读
tjbchcvc
- 粉丝: 1
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0