GDB Tutorial调试命令总结

Zephyr / 2023-08-10 / 原文

什么是GDB

基本操作

启动调试

编译

启动方式

设置断点

查看源码

查看变量、表达式

查询运行信息

Ref

GDB中文指南

快速查找,理解

  1. https://wizardforcel.gitbooks.io/100-gdb-tips/content/print-registers.html
  2. http://c.biancheng.net/view/8123.html
  3. https://linuxtools-rst.readthedocs.io/zh_CN/latest/tool/gdb.html

GDB官方资料

  • 官方网址
    https://sourceware.org/gdb/
  • 官方在线文档
    https://sourceware.org/gdb/current/onlinedocs/gdb

other

在线gdb工具:https://www.onlinegdb.com/