diff --git a/Software/Applications/GDB/GDBServer_的使用.md b/Software/Applications/GDB/GDBServer_的使用.md index 70a70ed..c149020 100644 --- a/Software/Applications/GDB/GDBServer_的使用.md +++ b/Software/Applications/GDB/GDBServer_的使用.md @@ -7,7 +7,7 @@ GDBServer 用于与 GDB 配合工作,以实现远程调试。在 Host 上开 gdbserver 的使用非常简单,只要在某个端口上开启监听就可以: ```bash -gdbserver [listen ip]: +gdbserver [listen ip]: [--args ] ``` ## Host 端 diff --git a/Software/Applications/GDB/GDB_的使用.md b/Software/Applications/GDB/GDB_的使用.md new file mode 100644 index 0000000..84a2dab --- /dev/null +++ b/Software/Applications/GDB/GDB_的使用.md @@ -0,0 +1,32 @@ +# GDB 的使用 + +## 伪图形窗口 + +```bash +(gdb)tui enable +``` + +## 断点 + +```bash +# location 可以为:linenum,filename:linenum,+offset,-offset,function,filename:function +(gdb) break +(gdb) b +# 查看当前设置的断点信息 +(gdb) info breakpoints +# 删除断点 +(gdb) delete [breakpoints num] [range...] +(gdb) d [breakpoints num] [range...] +# 清除全部断点 +(gdb) clear +# 删除所选定的环境中所有的断点 +(gdb) clear +``` + +## 变量查看 + +```bash +(gdb) p +(gdb) p +(gdb) p +``` diff --git a/Software/Development/OperatingSystem/Android/Debug/使用_GDB_调试_Native_程序.md b/Software/Development/OperatingSystem/Android/Debug/使用_GDB_调试_Native_程序.md new file mode 100644 index 0000000..b2ade30 --- /dev/null +++ b/Software/Development/OperatingSystem/Android/Debug/使用_GDB_调试_Native_程序.md @@ -0,0 +1,3 @@ +# 使用 GDB 调试 Native 程序 + +TODO: