From 3fee3a20e8b02a3e192259768c421fac5bc92aa5 Mon Sep 17 00:00:00 2001 From: Reset816 Date: Mon, 29 Apr 2024 09:14:32 +0000 Subject: [PATCH] README: add docs of tmux Signed-off-by: Reset816 --- README.md | 4 ++++ README_zh.md | 2 ++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 47ae1c8..50096a4 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 db22e13..b010297 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 -- Gitee