数码营电子:基于微型控制器的编程、电路设计与电子产品制做。邮箱:shumaying@hotmail.com

GDB

From 数码营电子实验室
Revision as of 10:01, 12 February 2020 by Editor (talk | contribs) (Created page with "*[https://www.gnu.org/software/gdb/ GDB: The GNU Project Debugger] *What is GDB? GDB, the GNU Project debugger, allows you to see what is going on `inside' another program w...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • What is GDB?

GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed.

GDB can do four main kinds of things (plus other things in support of these) to help you catch bugs in the act:

   Start your program, specifying anything that might affect its behavior.
   Make your program stop on specified conditions.
   Examine what has happened, when your program has stopped.
   Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another. 

Those programs might be executing on the same machine as GDB (native), on another machine (remote), or on a simulator. GDB can run on most popular UNIX and Microsoft Windows variants, as well as on Mac OS X.

What Languages does GDB Support? GDB supports the following languages (in alphabetical order):

   Ada
   Assembly
   C
   C++
   D
   Fortran
   Go
   Objective-C
   OpenCL
   Modula-2
   Pascal
   Rust
Qrcode for gh a3b9e9962ce8 1280.jpg