Prepare for the CompTIA PenTest+ Exam with our comprehensive materials. Test your knowledge with flashcards and multiple-choice questions, complete with explanations and hints. Achieve exam success!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What type of debugging tool is GNU Debugger (GDB)?

  1. Only for Windows

  2. Open-source for various platforms

  3. Only for Linux

  4. Paid software

The correct answer is: Open-source for various platforms

GNU Debugger (GDB) is an open-source debugging tool that provides developers with the ability to observe and control the execution of programs across various platforms. One of its key features is its versatility, as it can be used on Unix-like systems (such as Linux) as well as on Windows and macOS. This is essential for developers who work in cross-platform environments, allowing them to debug applications consistently regardless of the operating system in use. Since GDB is released under the GNU General Public License, it is freely available, making it accessible to anyone who wishes to use it for software development and debugging. This open-source nature encourages collaboration and contributions from the programming community, which further enhances its capabilities and support for different architectures and programming languages. In contrast, options that suggest GDB is limited to a specific operating system or is paid software do not accurately represent its functionality and accessibility. GDB’s broad applicability and affordability as an open-source tool are what make it a fundamental resource in the realm of debugging.