找回密码
 注册
搜索
查看: 1129|回复: 2

上传Debugging with gdb.pdf(第一次发,还不太懂,忘记先上传了。现在补发)

[复制链接]
发表于 2007-5-7 10:29:20 | 显示全部楼层 |阅读模式
第一次发,还不太懂,忘记先上传了。现在补发
希望大家多多支持啊

【文件名】:0757@52RD_gdb.pdf
【格 式】:pdf
【大 小】:2050K
【简 介】:
【目 录】:



Table of Contents
Summary of gdb .............................. 1
Free Software .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 1
Free Software Needs Free Documentation .. ... ... ... ... ... ... ... ... 1
Contributors to gdb.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 3
1 A Sample gdb Session...................... 7
2 Getting In and Out of gdb ................ 11
2.1 Invoking gdb .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 11
2.1.1 Choosing Files.. ... ... ... ... ... ... ... ... ... ... ... ... ... 12
2.1.2 Choosing Modes .. ... ... ... ... ... ... ... ... ... ... ... ... . 13
2.1.3 What gdb Does During Startup .. ... ... ... ... ... ... ... . 15
2.2 Quitting gdb .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 16
2.3 Shell Commands .. ... ... ... ... ... ... ... ... ... ... ... ... ... .. 16
2.4 Logging Output .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... 16
3 gdb Commands........................... 19
3.1 Command Syntax .. ... ... ... ... ... ... ... ... ... ... ... ... ... . 19
3.2 Command Completion.. ... ... ... ... ... ... ... ... ... ... ... ... 19
3.3 Getting Help.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 21
4 Running Programs Under gdb............. 25
4.1 Compiling for Debugging .. ... ... ... ... ... ... ... ... ... ... ... 25
4.2 Starting your Program.. ... ... ... ... ... ... ... ... ... ... ... ... 26
4.3 Your Program’s Arguments .. ... ... ... ... ... ... ... ... ... ... . 27
4.4 Your Program’s Environment .. ... ... ... ... ... ... ... ... ... .. 28
4.5 Your Program’s Working Directory .. ... ... ... ... ... ... ... ... 29
4.6 Your Program’s Input and Output.. ... ... ... ... ... ... ... ... . 29
4.7 Debugging an Already-running Process .. ... ... ... ... ... ... .. 30
4.8 Killing the Child Process .. ... ... ... ... ... ... ... ... ... ... ... 31
4.9 Debugging Programs with Multiple Threads.. ... ... ... ... ... . 31
4.10 Debugging Programs with Multiple Processes.. ... ... ... ... .. 33
4.11 Setting a Bookmark to Return to Later .. ... ... ... ... ... ... . 35
4.11.1 A Non-obvious Bene?t of Using Checkpoints.. ... ... ... . 36
5 Stopping and Continuing.................. 37
5.1 Breakpoints, Watchpoints, and Catchpoints .. ... ... ... ... ... . 37
5.1.1 Setting Breakpoints.. ... ... ... ... ... ... ... ... ... ... ... . 38
5.1.2 Setting Watchpoints .. ... ... ... ... ... ... ... ... ... ... ... 42
5.1.3 Setting Catchpoints.. ... ... ... ... ... ... ... ... ... ... ... . 44
5.1.4 Deleting Breakpoints.. ... ... ... ... ... ... ... ... ... ... ... 46
ii
Debugging with gdb
5.1.5 Disabling Breakpoints.. ... ... ... ... ... ... ... ... ... ... .. 46
5.1.6 Break Conditions .. ... ... ... ... ... ... ... ... ... ... ... ... 47
5.1.7 Breakpoint Command Lists.. ... ... ... ... ... ... ... ... ... 49
5.1.8 Breakpoint Menus .. ... ... ... ... ... ... ... ... ... ... ... .. 50
5.1.9 “Cannot insert breakpoints” .. ... ... ... ... ... ... ... ... .. 50
5.1.10 “Breakpoint address adjusted...” .. ... ... ... ... ... ... ... 51
5.2 Continuing and Stepping.. ... ... ... ... ... ... ... ... ... ... ... . 52
5.3 Signals .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 55
5.4 Stopping and Starting Multi-thread Programs .. ... ... ... ... .. 57
6 Examining the Stack...................... 59
6.1 Stack Frames .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 59
6.2 Backtraces.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 60
6.3 Selecting a Frame .. ... ... ... ... ... ... ... ... ... ... ... ... ... . 62
6.4 Information About a Frame .. ... ... ... ... ... ... ... ... ... ... . 63
7 Examining Source Files ................... 65
7.1 Printing Source Lines.. ... ... ... ... ... ... ... ... ... ... ... ... . 65
7.2 Editing Source Files .. ... ... ... ... ... ... ... ... ... ... ... ... .. 66
7.2.1 Choosing your Editor .. ... ... ... ... ... ... ... ... ... ... .. 67
7.3 Searching Source Files .. ... ... ... ... ... ... ... ... ... ... ... ... 67
7.4 Specifying Source Directories.. ... ... ... ... ... ... ... ... ... ... 67
7.5 Source and Machine Code.. ... ... ... ... ... ... ... ... ... ... ... 70
8 Examining Data .......................... 73
8.1 Expressions .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 73
8.2 Program Variables.. ... ... ... ... ... ... ... ... ... ... ... ... ... . 74
8.3 Arti?cial Arrays.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... 75
8.4 Output Formats.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... 76
8.5 Examining Memory .. ... ... ... ... ... ... ... ... ... ... ... ... .. 77
8.6 Automatic Display .. ... ... ... ... ... ... ... ... ... ... ... ... ... 79
8.7 Print Settings.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 80
8.8 Value History .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 85
8.9 Convenience Variables .. ... ... ... ... ... ... ... ... ... ... ... ... 86
8.10 Registers .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 88
8.11 Floating Point Hardware.. ... ... ... ... ... ... ... ... ... ... ... 89
8.12 Vector Unit.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 89
8.13 Operating System Auxiliary Information .. ... ... ... ... ... ... 90
8.14 Memory Region Attributes.. ... ... ... ... ... ... ... ... ... ... . 90
8.14.1 Attributes.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... 91
8.14.1.1 Memory Access Mode .. ... ... ... ... ... ... ... ... .. 91
8.14.1.2 Memory Access Size.. ... ... ... ... ... ... ... ... ... . 91
8.14.1.3 Data Cache.. ... ... ... ... ... ... ... ... ... ... ... ... 92
8.14.2 Memory Access Checking.. ... ... ... ... ... ... ... ... ... . 92
8.15 Copy Between Memory and a File .. ... ... ... ... ... ... ... ... 92
8.16 How to Produce a Core File from Your Program.. ... ... ... .. 93
8.17 Character Sets .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... 93
8.18 Caching Data of Remote Targets .. ... ... ... ... ... ... ... ... . 96
9 C Preprocessor Macros ................... 97
10 Tracepoints ............................ 101
10.1 Commands to Set Tracepoints.. ... ... ... ... ... ... ... ... ... 101
10.1.1 Create and Delete Tracepoints.. ... ... ... ... ... ... ... . 101
10.1.2 Enable and Disable Tracepoints.. ... ... ... ... ... ... ... 102
10.1.3 Tracepoint Passcounts .. ... ... ... ... ... ... ... ... ... .. 102
10.1.4 Tracepoint Action Lists .. ... ... ... ... ... ... ... ... ... . 103
10.1.5 Listing Tracepoints .. ... ... ... ... ... ... ... ... ... ... .. 104
10.1.6 Starting and Stopping Trace Experiments .. ... ... ... .. 104
10.2 Using the Collected Data .. ... ... ... ... ... ... ... ... ... ... . 105
10.2.1 tfind n .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... 105
10.2.2 tdump.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 107
10.2.3 save-tracepoints filename .. ... ... ... ... ... ... ... . 108
10.3 Convenience Variables for Tracepoints .. ... ... ... ... ... ... . 108
11 Debugging Programs That Use Overlays
....................................... 109
11.1 How Overlays Work .. ... ... ... ... ... ... ... ... ... ... ... ... 109
11.2 Overlay Commands .. ... ... ... ... ... ... ... ... ... ... ... ... 110
11.3 Automatic Overlay Debugging .. ... ... ... ... ... ... ... ... .. 112
11.4 Overlay Sample Program .. ... ... ... ... ... ... ... ... ... ... . 113
12 Using gdb with Di?erent Languages ..... 115
12.1 Switching Between Source Languages .. ... ... ... ... ... ... .. 115
12.1.1 List of Filename Extensions and Languages.. ... ... ... . 115
12.1.2 Setting the Working Language.. ... ... ... ... ... ... ... . 116
12.1.3 Having gdb Infer the Source Language .. ... ... ... ... .. 116
12.2 Displaying the Language.. ... ... ... ... ... ... ... ... ... ... .. 116
12.3 Type and Range Checking .. ... ... ... ... ... ... ... ... ... ... 117
12.3.1 An Overview of Type Checking .. ... ... ... ... ... ... ... 117
12.3.2 An Overview of Range Checking .. ... ... ... ... ... ... .. 118
12.4 Supported Languages.. ... ... ... ... ... ... ... ... ... ... ... .. 119
12.4.1 C and C++ .. ... ... ... ... ... ... ... ... ... ... ... ... ... . 119
12.4.1.1 C and C++ Operators .. ... ... ... ... ... ... ... ... . 120
12.4.1.2 C and C++ Constants .. ... ... ... ... ... ... ... ... . 121
12.4.1.3 C++ Expressions .. ... ... ... ... ... ... ... ... ... ... 122
12.4.1.4 C and C++ Defaults .. ... ... ... ... ... ... ... ... ... 123
12.4.1.5 C and C++ Type and Range Checks .. ... ... ... ... 123
12.4.1.6 gdb and C .. ... ... ... ... ... ... ... ... ... ... ... .. 123
12.4.1.7 gdb Features for C++ .. ... ... ... ... ... ... ... ... . 124
12.4.2 Objective-C .. ... ... ... ... ... ... ... ... ... ... ... ... ... 125
12.4.2.1 Method Names in Commands .. ... ... ... ... ... ... 125
12.4.2.2 The Print Command With Objective-C .. ... ... ... 126
12.4.3 Fortran .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 126
12.4.3.1 Fortran Operators and Expressions .. ... ... ... ... . 126
12.4.3.2 Fortran Defaults .. ... ... ... ... ... ... ... ... ... ... 126
14 Altering Execution ..................... 145
14.1 Assignment to Variables .. ... ... ... ... ... ... ... ... ... ... .. 145
14.2 Continuing at a Di?erent Address .. ... ... ... ... ... ... ... .. 146
14.3 Giving your Program a Signal.. ... ... ... ... ... ... ... ... ... 147
14.4 Returning from a Function.. ... ... ... ... ... ... ... ... ... ... 147
14.5 Calling Program Functions.. ... ... ... ... ... ... ... ... ... ... 148
14.6 Patching Programs .. ... ... ... ... ... ... ... ... ... ... ... ... . 148
15 gdb Files............................... 151
15.1 Commands to Specify Files .. ... ... ... ... ... ... ... ... ... .. 151
15.2 Debugging Information in Separate Files .. ... ... ... ... ... .. 157
15.3 Errors Reading Symbol Files .. ... ... ... ... ... ... ... ... ... . 159
16 Specifying a Debugging Target .......... 163
16.1 Active Targets .. ... ... ... ... ... ... ... ... ... ... ... ... ... .. 163
16.2 Commands for Managing Targets.. ... ... ... ... ... ... ... ... 164
16.3 Choosing Target Byte Order .. ... ... ... ... ... ... ... ... ... . 166
17 Debugging Remote Programs ........... 167
17.1 Connecting to a Remote Target .. ... ... ... ... ... ... ... ... . 167
17.2 Using the gdbserver Program .. ... ... ... ... ... ... ... ... .. 169
17.2.1 Monitor Commands for gdbserver.. ... ... ... ... ... ... 170
17.3 Remote Con?guration .. ... ... ... ... ... ... ... ... ... ... ... . 170
17.4 Implementing a Remote Stub .. ... ... ... ... ... ... ... ... ... 172
17.4.1 What the Stub Can Do for You.. ... ... ... ... ... ... ... 174
17.4.2 What You Must Do for the Stub.. ... ... ... ... ... ... .. 174
17.4.3 Putting it All Together.. ... ... ... ... ... ... ... ... ... .. 175
18 Con?guration-Speci?c Information....... 177
18.1 Native.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 177
18.1.1 HP-UX .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 177
18.1.2 BSD libkvm Interface .. ... ... ... ... ... ... ... ... ... ... 177
18.1.3 SVR4 Process Information .. ... ... ... ... ... ... ... ... . 177
18.1.4 Features for Debugging djgpp Programs .. ... ... ... ... 179
18.1.5 Features for Debugging MS Windows PE Executables .. 181
18.1.5.1 Support for DLLs without Debugging Symbols .. .. 182
18.1.5.2 DLL Name Pre?xes .. ... ... ... ... ... ... ... ... ... 182
18.1.5.3 Working with Minimal Symbols .. ... ... ... ... ... . 183
18.1.6 Commands Speci?c to gnu Hurd Systems .. ... ... ... .. 184
18.1.7 QNX Neutrino .. ... ... ... ... ... ... ... ... ... ... ... ... 186
18.2 Embedded Operating Systems.. ... ... ... ... ... ... ... ... ... 186
18.2.1 Using gdb with VxWorks .. ... ... ... ... ... ... ... ... .. 186
18.2.1.1 Connecting to VxWorks .. ... ... ... ... ... ... ... .. 187
18.2.1.2 VxWorks Download .. ... ... ... ... ... ... ... ... ... 187
18.2.1.3 Running Tasks.. ... ... ... ... ... ... ... ... ... ... .. 188
18.3 Embedded Processors .. ... ... ... ... ... ... ... ... ... ... ... . 188
18.3.1 ARM .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 188
18.3.2 Renesas M32R/D and M32R/SDI.. ... ... ... ... ... ... . 190
18.3.3 M68k .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 191
18.3.4 MIPS Embedded .. ... ... ... ... ... ... ... ... ... ... ... . 191
18.3.5 OpenRISC 1000 .. ... ... ... ... ... ... ... ... ... ... ... .. 193
18.3.6 PowerPC .. ... ... ... ... ... ... ... ... ... ... ... ... ... .. 195
18.3.7 HP PA Embedded .. ... ... ... ... ... ... ... ... ... ... ... 195
18.3.8 Tsqware Sparclet .. ... ... ... ... ... ... ... ... ... ... ... . 195
18.3.8.1 Setting File to Debug .. ... ... ... ... ... ... ... ... . 196
18.3.8.2 Connecting to Sparclet .. ... ... ... ... ... ... ... ... 196
18.3.8.3 Sparclet Download .. ... ... ... ... ... ... ... ... ... . 196
18.3.8.4 Running and Debugging .. ... ... ... ... ... ... ... .. 197
18.3.9 Fujitsu Sparclite.. ... ... ... ... ... ... ... ... ... ... ... .. 197
18.3.10 Zilog Z8000 .. ... ... ... ... ... ... ... ... ... ... ... ... .. 197
18.3.11 Atmel AVR .. ... ... ... ... ... ... ... ... ... ... ... ... .. 197
18.3.12 CRIS .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 198
18.3.13 Renesas Super-H .. ... ... ... ... ... ... ... ... ... ... ... 198
18.4 Architectures .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... 198
18.4.1 x86 Architecture-speci?c Issues .. ... ... ... ... ... ... ... 198
22.2 TUI Key Bindings.. ... ... ... ... ... ... ... ... ... ... ... ... .. 222
22.3 TUI Single Key Mode .. ... ... ... ... ... ... ... ... ... ... ... . 223
22.4 TUI-speci?c Commands .. ... ... ... ... ... ... ... ... ... ... .. 224
22.5 TUI Con?guration Variables .. ... ... ... ... ... ... ... ... ... . 225
23 Using gdb under gnu Emacs ............ 227
24 The gdb/mi Interface ................... 229
Function and Purpose .. ... ... ... ... ... ... ... ... ... ... ... ... ... . 229
Notation and Terminology .. ... ... ... ... ... ... ... ... ... ... ... ... 229
24.3 gdb/mi Command Syntax .. ... ... ... ... ... ... ... ... ... ... 229
24.3.1 gdb/mi Input Syntax .. ... ... ... ... ... ... ... ... ... ... 229
24.3.2 gdb/mi Output Syntax .. ... ... ... ... ... ... ... ... ... . 230
24.4 gdb/mi Compatibility with CLI.. ... ... ... ... ... ... ... ... . 232
24.5 gdb/mi Development and Front Ends .. ... ... ... ... ... ... . 232
24.6 gdb/mi Output Records.. ... ... ... ... ... ... ... ... ... ... .. 232
24.6.1 gdb/mi Result Records .. ... ... ... ... ... ... ... ... ... . 232
24.6.2 gdb/mi Stream Records .. ... ... ... ... ... ... ... ... ... 233
24.6.3 gdb/mi Out-of-band Records.. ... ... ... ... ... ... ... .. 233
24.7 Simple Examples of gdb/mi Interaction.. ... ... ... ... ... ... 234
24.8 gdb/mi Command Description Format .. ... ... ... ... ... ... 235
24.9 gdb/mi Breakpoint Commands .. ... ... ... ... ... ... ... ... . 235
vii
24.10 gdb/mi Program Context .. ... ... ... ... ... ... ... ... ... .. 243
24.11 gdb/mi Thread Commands.. ... ... ... ... ... ... ... ... ... . 245
24.12 gdb/mi Program Execution.. ... ... ... ... ... ... ... ... ... . 247
24.13 gdb/mi Stack Manipulation Commands .. ... ... ... ... ... . 252
24.14 gdb/mi Variable Objects .. ... ... ... ... ... ... ... ... ... ... 257
24.15 gdb/mi Data Manipulation .. ... ... ... ... ... ... ... ... ... . 262
24.16 gdb/mi Tracepoint Commands.. ... ... ... ... ... ... ... ... . 268
24.17 gdb/mi Symbol Query Commands .. ... ... ... ... ... ... ... 269
24.18 gdb/mi File Commands .. ... ... ... ... ... ... ... ... ... ... . 271
24.19 gdb/mi Target Manipulation Commands .. ... ... ... ... ... 274
24.20 Miscellaneous gdb/mi Commands .. ... ... ... ... ... ... ... . 278
25 gdb Annotations ....................... 283
25.1 What is an Annotation? .. ... ... ... ... ... ... ... ... ... ... .. 283
25.2 Annotation for gdb Input .. ... ... ... ... ... ... ... ... ... ... 284
25.3 Errors.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 284
25.4 Invalidation Notices .. ... ... ... ... ... ... ... ... ... ... ... ... 285
25.5 Running the Program .. ... ... ... ... ... ... ... ... ... ... ... . 285
25.6 Displaying Source .. ... ... ... ... ... ... ... ... ... ... ... ... .. 286
26 Reporting Bugs in gdb.................. 287
26.1 Have You Found a Bug? .. ... ... ... ... ... ... ... ... ... ... .. 287
26.2 How to Report Bugs .. ... ... ... ... ... ... ... ... ... ... ... .. 287
27 Command Line Editing ................. 291
27.1 Introduction to Line Editing .. ... ... ... ... ... ... ... ... ... . 291
27.2 Readline Interaction.. ... ... ... ... ... ... ... ... ... ... ... ... 291
27.2.1 Readline Bare Essentials .. ... ... ... ... ... ... ... ... ... 291
27.2.2 Readline Movement Commands.. ... ... ... ... ... ... ... 292
27.2.3 Readline Killing Commands .. ... ... ... ... ... ... ... ... 292
27.2.4 Readline Arguments .. ... ... ... ... ... ... ... ... ... ... . 293
27.2.5 Searching for Commands in the History .. ... ... ... ... . 293
27.3 Readline Init File .. ... ... ... ... ... ... ... ... ... ... ... ... .. 294
27.3.1 Readline Init File Syntax.. ... ... ... ... ... ... ... ... ... 294
27.3.2 Conditional Init Constructs .. ... ... ... ... ... ... ... ... 299
27.3.3 Sample Init File .. ... ... ... ... ... ... ... ... ... ... ... .. 300
27.4 Bindable Readline Commands.. ... ... ... ... ... ... ... ... ... 303
27.4.1 Commands For Moving .. ... ... ... ... ... ... ... ... ... . 303
27.4.2 Commands For Manipulating The History .. ... ... ... .. 303
27.4.3 Commands For Changing Text .. ... ... ... ... ... ... ... 305
27.4.4 Killing And Yanking .. ... ... ... ... ... ... ... ... ... ... . 306
27.4.5 Specifying Numeric Arguments .. ... ... ... ... ... ... ... 307
27.4.6 Letting Readline Type For You .. ... ... ... ... ... ... ... 307
27.4.7 Keyboard Macros.. ... ... ... ... ... ... ... ... ... ... ... . 307
27.4.8 Some Miscellaneous Commands.. ... ... ... ... ... ... ... 308
27.5 Readline vi Mode .. ... ... ... ... ... ... ... ... ... ... ... ... .. 309
B.2 Invoking the gdb ‘configure’ Script .. ... ... ... ... ... ... ... 317
B.3 Compiling gdb in Another Directory .. ... ... ... ... ... ... ... 319
B.4 Specifying Names for Hosts and Targets .. ... ... ... ... ... ... 319
B.5 ‘configure’ Options .. ... ... ... ... ... ... ... ... ... ... ... ... 320
Appendix C
Maintenance Commands ...... 323
Appendix D
gdb Remote Serial Protocol ... 329
D.1 Overview .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 329
D.2 Packets .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 330
D.3 Stop Reply Packets .. ... ... ... ... ... ... ... ... ... ... ... ... . 337
D.4 General Query Packets.. ... ... ... ... ... ... ... ... ... ... ... . 338
D.5 Register Packet Format .. ... ... ... ... ... ... ... ... ... ... ... 346
D.6 Tracepoint Packets .. ... ... ... ... ... ... ... ... ... ... ... ... . 346
D.7 Interrupts.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 348
D.8 Examples .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 349
D.9 File-I/O Remote Protocol Extension .. ... ... ... ... ... ... ... 349
D.9.1 File-I/O Overview.. ... ... ... ... ... ... ... ... ... ... ... . 349
D.9.2 Protocol Basics .. ... ... ... ... ... ... ... ... ... ... ... ... 350
D.9.3 The F Request Packet .. ... ... ... ... ... ... ... ... ... ... 350
D.9.4 The F Reply Packet .. ... ... ... ... ... ... ... ... ... ... .. 351
D.9.5 The ‘Ctrl-C’ Message .. ... ... ... ... ... ... ... ... ... ... 351
D.9.6 Console I/O .. ... ... ... ... ... ... ... ... ... ... ... ... ... 351
D.9.7 List of Supported Calls .. ... ... ... ... ... ... ... ... ... .. 352
open .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 352
close .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 353
read.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 353
write .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 354
lseek .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 354
rename .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 354
unlink .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 355
stat/fstat .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 356
gettimeofday.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 356
isatty .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 356
system .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 357
ix
Pointer Values .. ... ... ... ... ... ... ... ... ... ... ... ... ... .. 357
Memory Transfer.. ... ... ... ... ... ... ... ... ... ... ... ... ... 358
struct stat .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 358
struct timeval.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... 359
D.9.9 Constants .. ... ... ... ... ... ... ... ... ... ... ... ... ... .. 359
Open Flags .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 359
mode t Values .. ... ... ... ... ... ... ... ... ... ... ... ... ... .. 359
Errno Values.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 359
Lseek Flags .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. 360
Limits.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 360
D.9.10 File-I/O Examples .. ... ... ... ... ... ... ... ... ... ... .. 360
D.10 Memory Map Format .. ... ... ... ... ... ... ... ... ... ... ... . 361
Appendix E
The GDB Agent Expression
Mechanism............................. 363
E.1 General Bytecode Design .. ... ... ... ... ... ... ... ... ... ... .. 363
E.2 Bytecode Descriptions.. ... ... ... ... ... ... ... ... ... ... ... .. 365
E.3 Using Agent Expressions .. ... ... ... ... ... ... ... ... ... ... .. 369
E.4 Varying Target Capabilities.. ... ... ... ... ... ... ... ... ... ... 370
E.5 Tracing on Symmetrix.. ... ... ... ... ... ... ... ... ... ... ... .. 370
E.6 Rationale .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 372
Appendix F
Target Descriptions ........... 375
F.1 Retrieving Descriptions.. ... ... ... ... ... ... ... ... ... ... ... . 375
F.2 Target Description Format.. ... ... ... ... ... ... ... ... ... ... . 376
F.2.1 Inclusion .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... 376
F.2.2 Architecture .. ... ... ... ... ... ... ... ... ... ... ... ... ... 376
F.2.3 Features .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 377
F.2.4 Types .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... 377
F.2.5 Registers .. ... ... ... ... ... ... ... ... ... ... ... ... ... ... 377
F.3 Prede?ned Target Types .. ... ... ... ... ... ... ... ... ... ... .. 378
F.4 Standard Target Features.. ... ... ... ... ... ... ... ... ... ... .. 379
F.4.1 ARM Features .. ... ... ... ... ... ... ... ... ... ... ... ... . 379
Appendix G
GNU GENERAL PUBLIC
LICENSE .............................. 381
Preamble.. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... . 381
TERMS AND CONDITIONS FOR COPYING,
DISTRIBUTION AND MODIFICATION .. ... ... ... ... ... .. 382
How to Apply These Terms to Your New Programs.. ... ... ... ... . 386
Appendix H
GNU Free Documentation License
....................................... 387
H.1 ADDENDUM: How to use this License for your documents .. 393
Index ...................................... 395[br]<p align=right><font color=red>+3 RD币</font></p>

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2007-5-22 13:25:39 | 显示全部楼层
谢谢
点评回复

使用道具 举报

发表于 2014-1-18 21:39:01 | 显示全部楼层
相当不错的资料哦!
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-4-18 19:35 , Processed in 0.050178 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表