您好,欢迎光临本网站![请登录][注册会员]  
文件名称: gdb_mannual.pdf
  所属分类: C
  开发工具:
  文件大小: 2mb
  下载次数: 0
  上传时间: 2019-07-28
  提 供 者: weixin_********
 详细说明:GDB操作手册,官网下载,英文版。适合从事C,C++开发的相关工作人员,以及相关的兴趣爱好者。Table of Contents Summary of GDB..… Free Software Free Software Needs free documentation Contributors to gdB 3 1 A Sample GDB Session 2 Getting In and Out of GDB 11 2.1 Invoking gdB 2.1.1 Choosing Files 12 2.1.2 Choosing Modes.......... 13 2.1.3 What GDB Does During Startup 16 2.2 Quitting GDB 17 3 Shell co 17 2. 4 Logging o 3 GDB Commands 申非 21 3.1 Command Syntax 21 3.2 Command Settings 21 33 Command Completion∴……… 22 3. 4 Command options 25 3.5 Getting help 26 4 Running Programs Under GDB 29 4.1 Compiling for Debugging ..29 4.2 Starting your Program 30 4.3 Your Program's Arguments 34 4.4 Your program's environment ..34 4.5 Your Programs Working Directory 35 4.6 Your Programs Input and Output. 36 4.7 Debugging an Already-running Process .,,37 4.8 Killing the Child Process 38 4.9 Debugging Multiple Inferiors and Programs.......... 38 4.10 Debugging Programs with Multiple Threads 41 4.11 Debugging Forks 4.12 Setting a Bookmark to Return to Later 48 4.12.1 A Non-obvious Benefit of Using Checkpoints 50 Debugging with GDB 5 Stopping and Continuing ...51 5. 1 Breakpoints, Watchpoints, and Calchpoinls 51 5.1.1 Setting Breakpoints 52 5.1.2 Setting Watchpoints 58 5.1.3 Setting Catchpoints 61 5.1. 4 Deleting Breakpoints ·;···.······ 65 5.1.5 Disabling Breakpoints 66 5.1.6 Break Conditions .67 5.1.7 Breakpoint Command Lists 69 5.1.8 Dynamic Printf 70 5.1.9 How to save breakpoints to a file 72 5.1.10 Static Probe Points 72 5.1.11 Cannot insert breakpoints ..74 5.1.12“ Breakpoint address adjusted..” 5.2 Continuing and stepping 74 3 Skipping Over Functions and Files 5.4 Signals ∴,,81 5.5 Stopping and Starting Multi-thread Programs ∴...84 5.5.1 All-Stop Mode.… 84 5.5. 2 Non-Stop Mode 5.5. 3 Background Execution 86 5.5.4 Thread-Specific Breakpoints 87 5.5.5 Interrupted Systeln calls 5.5.6 Observer Mode 88 6 Running programs backward 91 7 Recording Inferior's Execution and Replaying It 93 8 Examining the Stack ...101 8.1 Stack frames 101 8.2 Backtraces 102 8.3 Selecting a frame ,105 8. 4 Information About a frame 107 8.5 Applying a Command to Several Frames 108 8.6 Management of Frame Filters 10 9 Examining Source Files .113 9.1 Printing source lines 113 9.2 Specifying a Location · ..114 9.2.1 Linespec Locations ∴,,,114 9.2.2 Explicit Locations...……,,115 9.2.3 Address locations ,,,116 9.3 Editing source files ...117 9.3. 1 Choosing your Editor 117 9.1 Scarching sourcc files ∴..118 9.5 Specifying Source Directories ····· .......118 9. 6 Source and machine code 121 10卫 examining Data.. 申·。·看D 127 10.1 Expressions ....130 10.2 Ambiguous Expressions 131 10.3 Program Varia bles 132 10.4 Artificial A 135 10.5 Output Formats 136 10.6 Examining Memory .137 10.7 Automatic Display ..140 10.8 Print Settil 141 10.9 Pretty Printing ..150 10.9.1 Pretty-Printer Introduction 150 10.9.2 Pretty-Printer Example....... ∴........150 10.9.3 Pretty-Printer Commands............... 151 10.10 Value Histol 152 10.11 Convenience Variables 153 10.12 Convenience functions 156 10.13 Registers 158 10.14 Floating point hardware..................160 10.15 Vector Unit .161 10.16 Opcrating Systcm Auxiliary Information.......... 161 10.17 Memory Region Attributes 163 10.17.1 Attributes .,164 10.17.1 1 Memory Access Mode 164 10. 17.1.2 Memory Access Size ...164 10.17.1.3 Data Cache 164 10.17.2 Memory Access Checking 164 10.18 Copy Between Memory and a File 165 10. 19 How to Produce a Core File from Your Program...... 166 10.20 Character sets .167 10.21 Caching Data of Targets 鲁, 169 10.22 Search Memor ∴.,171 10.23 Value sizes 172 11 Debugging Optimized Code........ 173 11.1 Inline functions ,,173 11.2 Tail Call Frames ∴..174 Debugging with GDB 12 C Preprocessor Macros 177 13 Tracepoints 181 13.1 Commands to Set tracepoints 181 13.1.1 Create and Delete Tracepoints 182 13. 1.2 Enable and Disable Tracepoints 184 13.1.3 Tracepoint Passcounts 184 13.1.4 Tracepoint Conditions 185 13.1.5 Trace State Variables 18 13.1.6 Tracepoint Action Lists ..186 13. 1.7 Listing Tracepoints 188 13.1. 8 Listing Static Tracepoint Markers 189 13.1.9 Starting and Stopping Trace Ex] ts∴∴,190 13.1.10 Tracepoint restrictions ..,192 13.2 Using the Collected Dala 193 13.2.1 tfind n. ∴,,,,,,193 13.2.2 thump... ∴,195 13.2.3 save tracepoints filename ..,196 13.3 Convenience Variables for Tracepoints ....196 3.4 USing 197 14 Debugging Programs That Use Overlays 199 14.1 How Overlays Work 199 14.2 Overlay Commands 200 14.3 Automatic Overlay Debugging 202 14.4 Overlay Sample program 203 15 Using GDB with Different Languages 205 15.1 Switching Bctwccn Sourcc Languages 205 15.1.1 List of Filename Extensions and Languages 05 15.1.2 Setting the Working language 15.1.3 Having GDB Infer the Source Language 206 15.2 Displaying the language .206 15.3 Type and Range Checking 207 15.3.1 An Overview of Type Checking............ 207 15.3.2 An Overview of Range Checking 208 15.4 Supported languages 15.4.1 C and c++ 209 15.4.1.1 C and C++ Operators 15.4.1.2 C and C++ Constants 211 15.4. 1.3 C++ Expressions 212 15.1.1.1C and C++ Defaults ∴.......213 15.4.1.5 C and C++ Type and range Checks 213 15.1.1.6 GDB and C 213 15.4.1.7 GDB Features for c++ 213 15.4.1.8 Decimal Floating Point format ∴....215 15.4.2D 15.4.3Go. 21 15.4.4 Objective-C ∴...216 15.4.4.1 Method names in Commands 216 15.4.4.2 The Print Command With Objective-C.,......... 217 15.4.5 OpenCL C .,217 15.4.5. 1 Open CL C Datatypes 217 15.4.5.2 OpenCL C上 xpressIons.…,,…….2l7 15.4.5. 3 OpenCL C operators ..217 15.4.6 Fortran ∴.,217 15.4.6.1 Fortran Operators and Expressions........218 15.4.6.2 Fortran Defaults 15.4.6.3 Special Fortran Commands 218 15.4.7 Pascal 218 15.4.8Rus 218 15.4.9 Modula-2 ∴.219 15.4.9.1 Operators 15.4.9.2 Built-in Functions and procedures 221 15.4.9.3 Constants 222 15.4.9. Modula-2 Types ∴..222 15.4.9.5 Modula-2 Defaults 224 15.4.9.6 Deviations from Standard Modula-2 224 15.4. 9.7 Modula-2 Type and Range Checks 224 15.498The Operators d 225 15.4.9.9 GDB and modula-2 225 15.4.10Ada 225 15.4.10.1 Introduction 225 15.4.10.2 Omissions from Ada ...226 15.410.4 Over loading support for ada…,"、. 15.1.10.3 Addition tions to ada 227 ∴.229 15.1.10.5 Stopping at the very Beginning 29 15.4.10.6 Ada Exceptions 229 15.4. 10.7 Extensions for Ada Tasks 230 15.4. 10.8 Tasking Support when Debugging Core Files..... 233 15.4.10.9 Tasking Support when using thc R ar profile 233 15.4.10.10 Ada Settings ∴,,233 15.4.10.11 Known peculiarities of ada mode 234 15.5 Unsupported Languages .,,.235 16 Examining the Symbol Table 237 Debugging with GDB 17 Altering Execution 249 17.1 Assignment to Variables 249 17.2 Continuing at a Different Address 250 17. 3 Giving your Program a signal ...251 17.1 Returning from a Function ..252 17.5. 1 Calling functions with no debug inIo.,,,,.,,......253 17.5 Calling Program Functions ∴...254 17. 6 Patching programs .255 17.7 Compiling and injecting codc in GDB 250 17.7.1 Compilation options for the compile command 257 17.7.2 Caveats when using the compile command 257 17.7.3 Compiler search for the compile command....... 259 1 8 GDB Files 261 18.1 CoMmands to Specily Files ,261 18.2 File caching ∴·.270 18.3 Debugging Information in Separate Files..........270 18.1 Debugging information in a special section 274 18.5 Index files speed Up gdB ,··· ∴..274 18.5.1 Automatic symbol index cache ..275 18.6 Errors Reading Symbol Files 276 18.7 GDB Data files ·.·.:.···· 277 Specifying a Debugging target 279 19.1 Active Targets 19.2 Commands for Managing targets .,279 19.3 Choosing Target Byte Order 282 20 Debugging Remote Programs ..283 20.1 Connecting to a Remote Target ..283 20.1.1 Types of Remote Connections 283 20.1.2 Host and Target files 284 20.1.3 Remote Connection Commands 20.2 Sending files to a remote system 288 20.3 USing the gdbserver Program 20.3.1 Running gdbserver 289 20.3. 1.1 Attaching to a Running Program ...289 20.3. 1.2 TCP port allocation lifecycle of gdbserver 290 20.3. 1.3 Other Command-Line Arguments for gdbserver.. 29 20.3.2 Connecting to gdbserver 291 20.3.3 Monitor Commands for gdbserver ∴.,291 20.3.4 Tracepoints support in gdbserver.…∴……29)2 20.4 Remote Configuration 293 20.5 Implementing a Remote Stub ...300 20.5.1 What the slub can Do for You ..,301 20.5.2 What You Must do for the stub 301 20.5. 3 Putting it All Together ..303 VIl 21 Configuration-Specific Information 305 21.1 Native..... · 305 21.1.1 BSD libkvm Interface 305 21.1.2 Process information ..305 21.1.3 Features for Debugging DjCPP Programs 307 21.1.4 Features for Debugging Ms Windows Pe Executables. 310 21.1.4.1 Support for DlLs without Debugging Symbols... 311 21.1.4.2 DLL Name prefixes 312 21.1.4.3 Working with Minimal Symbols 312 21. 1.5 Commands specific to gnu Hurd systems.......313 21.1.6 Darwin.…… ..,,315 21.1. 7 FreeBSD ...316 21.2 Embedded Operating Systems 316 21.3 Embedded processors ......316 21.3. 1 Synopsys ArC ..316 21.3.2ARM..... 317 21.3.3M68k. 318 21.3.4 Microblaze .3l8 21.3.5 MIPS Embedded ∴..319 21.3.6 OpenRIsc 1000 ...319 21.3. 7 PowerPC embedded 319 21.3.8 Atmel AVR ..320 21.3.9CRIS. ∴,,.321 21.3.10 Renesas Super-H 321 21.4 Architectures ..321 21.4.1 AArch64. 322 21 4.1.1 AArch64 SVE ....322 21.4.2 x86 Architccturc-spccific Issues ...322 21.4.2. 1 Intel Memory Protection Extensions(MPX).... 322 21.4.3 Alpha ..323 21.4.4MTPS 323 21.4.5HPPA. 325 21.4.6 Cell Broadband Engine sPu architecture .325 21.4.7 PowerPC ..,326 21.4.8 NiOS Il ...326 21.4.9 Sparc64. ∴.,327 21.4.9.1 ADI SU .....327 21.4.10S12Z ∴..,327 ugging with GDB 22 Controlling gDB ..329 22.1P 329 22.2 Command Editing · ...329 22. 3 Command History ..330 22.1 Screen size ∴.,,,,,,331 22.5 Output styling 332 22.6 Numbers 334 22.7 Configuring the Current abi 334 22.8 Automatically loading associatcd files ..336 2.8.1 Automatically loading init file in the current directory. 337 22.8. 2 Automatically loading thread debugging library 338 22.8. 3 Security restriction for auto-loading 338 22.8.4 Displaying files tried fo or auto-load ∴.,340 22.9 Optional Warnings and Messages .....340 22.10 Optional Messages about Internal happenings ....... 342 22.11 Other Miscellaneous Settings 346 23 Extending GDB 349 23.1 Canned Sequences of commands ..349 23.1.1 User-defined commands 349 23.1.2 User-defined command hooks,,.,..,..,,..,.351 23. 1.3 Command files .352 23. 1.4 Commands for Controlled output 354 23. 1.5 Controlling auto-loading natiVe GDB scripts .355 23.2 Extending GDB using Python 356 23.2.1 Python Commands.................. 356 23.2.2 Python APi 357 23.2.2.1 Basic Python 357 23.2.2.2 Exception Handling 361 23.2.2.3 Values from Inferior 362 23.2.2.4 Types In Python 368 23.2.2.5 Pretty Printing API 鲁·鲁番看 23.2.2.6 Selecting Pretty-Printers 23.2.2.7 Writing a Pretty-Printer 37 23.2.2.8 Type Printing API 377 23.2.2.9 Filtering Frames ..378 23.2.2.10 Decorating frames 380 23.2.2. 11 Writing a Fraine Filter 383 23.2.2.12 Unwinding Frames in Python 387 23.2.2. 13 Xmethods In Python. ...390 23.2.2.14 Xmethod API 390 23.2.2. 15 Writing an Xmethod 392 23.2.2. 16 Inferiors In Python ..395 23.2.2. 17 Events In Path 396 23.2.2.18 Thrcads In Python 400 23.2.2.19 Recordings In python 401 23.2.2.20 Commands In python · .405 23.2.2.21 Parameters In Python 408
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: gdb_mannual.pdf
 输入关键字,在本站1000多万海量源码库中尽情搜索: