diff --git a/README.md b/README.md index 47ae1c8397c2bf15dcc478650a577e4dc087faa5..50096a472446ae4976d9ef55cff939c0c41e30b6 100644 --- a/README.md +++ b/README.md @@ -1440,6 +1440,8 @@ And then debug it directly: The above command will use tmux to split into two terminals, each running QEMU and gdb respectively, and load the script from .gdb/kernel.default. +To switch tmux panes, use CTRL+b followed by the arrow key (e.g., ←). + To customize kernel gdbinit script, simply copy one and edit it manually: $ cp .gdb/kernel.default .gdb/kernel.user @@ -1470,6 +1472,8 @@ To debug U-Boot with `.gdb/uboot.default`: The above command will use tmux to split into two terminals, each running QEMU and gdb respectively. +To switch tmux panes, use CTRL+b followed by the arrow key (e.g., ←). + To automate U-Boot debug testing: $ make test-debug uboot diff --git a/README_zh.md b/README_zh.md index db22e13d79a4cbc90427f097f51e93479c2010d3..b0102974f85c963e459d14adfaf2356043defed1 100644 --- a/README_zh.md +++ b/README_zh.md @@ -1690,6 +1690,8 @@ GCC 的版本可以分别在开发板特定的 Makefile 中针对 Linux, Uboot, 该命令将使用 tmux 分割出两个终端分别运行 QEMU 和 gdb,并从 `.gdb/kernel.default` 加载脚本。 +可以使用 CTRL+b+方向键(例如←) 来切换 tmux 的窗格。 + 如果想修改调试脚本,可以拷贝一份到 `.gdb/kernel.user`,这样就可以无缝升级: $ cp .gdb/kernel.default .gdb/kernel.user