This file documents the GNU debugger ROCGDB.
This is the Tenth Edition, of Debugging with ROCGDB: the GNU Source-Level Debugger for ROCGDB (rocm-rel-6.2-124) Version 14.2.
Copyright © 1988-2023 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.”
Legal Disclaimer and Copyright Information
AMD ROCm software is made available by Advanced Micro Devices, Inc. under the open source license identified in the top-level directory for the library in the repository on Github.com (Portions of AMD ROCm software are licensed under MITx11 and UIL/NCSA. For more information on the license, review the license.txt in the top-level directory for the library on Github.com). The additional terms and conditions below apply to your use of AMD ROCm technical documentation.
©2019-2023 Advanced Micro Devices, Inc. All rights reserved.
The information presented in this document is for informational purposes only and may contain technical inaccuracies, omissions, and typographical errors. The information contained herein is subject to change and may be rendered inaccurate for many reasons, including but not limited to product and roadmap changes, component and motherboard version changes, new model and/or product releases, product differences between differing manufacturers, software changes, BIOS flashes, firmware upgrades, or the like. Any computer system has risks of security vulnerabilities that cannot be completely prevented or mitigated. AMD assumes no obligation to update or otherwise correct or revise this information. However, AMD reserves the right to revise this information and to make changes from time to time to the content hereof without obligation of AMD to notify any person of such revisions or changes.
THIS INFORMATION IS PROVIDED "AS IS." AMD MAKES NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE CONTENTS HEREOF AND ASSUMES NO RESPONSIBILITY FOR ANY INACCURACIES, ERRORS, OR OMISSIONS THAT MAY APPEAR IN THIS INFORMATION. AMD SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR ANY PARTICULAR PURPOSE. IN NO EVENT WILL AMD BE LIABLE TO ANY PERSON FOR ANY RELIANCE, DIRECT, INDIRECT, SPECIAL, OR OTHER CONSEQUENTIAL DAMAGES ARISING FROM THE USE OF ANY INFORMATION CONTAINED HEREIN, EVEN IF AMD IS EXPRESSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
AMD, the AMD Arrow logo, AMD Instinct™, Radeon™, AMD ROCm™, and combinations thereof are trademarks of Advanced Micro Devices, Inc. Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries. PCIe® is a registered trademark of PCI-SIG Corporation. Other product names used in this publication are for identification purposes only and may be trademarks of their respective companies.
This file describes ROCGDB, the GNU symbolic debugger.
This is the Tenth Edition, for ROCGDB (rocm-rel-6.2-124) Version 14.2.
Copyright (C) 1988-2023 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 ROCGDB | |
• Sample Session | A sample ROCGDB session | |
• Invocation | Getting in and out of ROCGDB | |
• Commands | ROCGDB commands | |
• Running | Running programs under ROCGDB | |
• 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 ROCGDB with different languages | |
• Symbols | Examining the symbol table | |
• Altering | Altering execution | |
• GDB Files | ROCGDB files | |
• Targets | Specifying a debugging target | |
• Heterogeneous Debugging | Debugging Heterogeneous Programs | |
• Remote Debugging | Debugging remote programs | |
• Configurations | Configuration-specific information | |
• Controlling GDB | Controlling ROCGDB | |
• Extending GDB | Extending ROCGDB | |
• Interpreters | Command Interpreters | |
• TUI | ROCGDB Text User Interface | |
• Emacs | Using ROCGDB under GNU Emacs | |
• GDB/MI | ROCGDB’s Machine Interface. | |
• Annotations | ROCGDB’s annotation interface. | |
• Debugger Adapter Protocol | The Debugger Adapter Protocol. | |
• JIT Interface | Using the JIT debugging interface. | |
• In-Process Agent | In-Process Agent | |
• GDB Bugs | Reporting bugs in ROCGDB | |
• Command Line Editing | Command Line Editing | |
• Using History Interactively | Using History Interactively | |
• In Memoriam | In Memoriam | |
• Formatting Documentation | How to format and print ROCGDB documentation | |
• Installing GDB | Installing ROCGDB | |
• Maintenance Commands | Maintenance Commands | |
• Remote Protocol | GDB Remote Serial Protocol | |
• Agent Expressions | The ROCGDB Agent Expression Mechanism | |
• Target Descriptions | How targets can describe themselves to ROCGDB | |
• Operating System Information | Getting additional information from the operating system | |
• Trace File Format | ROCGDB trace file format | |
• Index Section Format | .gdb_index section format | |
• Debuginfod | Download debugging resources with debuginfod
| |
• Man Pages | Manual pages | |
• Copying | GNU General Public License says how you can copy and share ROCGDB | |
• GNU Free Documentation License | The license for this documentation | |
• Concept Index | Index of ROCGDB concepts | |
• Command and Variable Index | Index of ROCGDB commands, variables, functions, and Python data types |
.gdb_index
section format